|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.torfu.kabayellow.common.Action | +--de.torfu.kabayellow.common.ActionPutStone
Setzt einen Baustein vom eigenen Vorrat ein.
Die Position muss durch Action.setPoint(Point)
festgelegt werden.
Field Summary |
Constructor Summary | |
ActionPutStone()
|
Method Summary | |
int |
getCost(Game game)
Gibt zurück, wie viele Aktionspunkte dieser Zug kostet. 0, falls nicht überschrieben. |
int |
getErrorCode(Game game)
Überprüft, ob der Zug den Regeln entspricht. |
Methods inherited from class de.torfu.kabayellow.common.Action |
clone, execute, getActionMoveKnightsForLongMove, getCostsOfPossibleMoves, getEndPoint4Move, getError, getID, getPointFromIndex, getPossibleEndPoints, getPossibleLocations, getPossibleLongMoves, getPossibleMoves, getPossibleSetKnight, getPossibleStartPoints, getStartPoint, getStartPoint4Move, hasStartPoint, isActionCard, isBuyCardAction, isKingAction, isKnightAction, isLegal, isnewKnightAction, isStoneAction, needsOnePoint, needsParameters, needsTwoPoints, setEndPoint, setID, setPoint, setPoint, setPoints, setStartPoint, toServer, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ActionPutStone()
Method Detail |
public int getErrorCode(Game game)
getErrorCode
in class Action
public int getCost(Game game)
Action
getCost
in class Action
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |