|
|||||||||
| 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.ActionBuyCard
Kauft eine neue Aktionskarte
| Field Summary |
| Constructor Summary | |
ActionBuyCard()
|
|
| 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. |
ActionCard |
getReceivedCard()
Gibt die erhaltene Karte zurück, falls diese bekannt ist. |
void |
setReceivedCardNumber(int cardNumber)
Setzt die empfangene Karte. |
| 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 ActionBuyCard()
| Method Detail |
public int getCost(Game game)
Action
getCost in class Actionpublic ActionCard getReceivedCard()
public void setReceivedCardNumber(int cardNumber)
public int getErrorCode(Game game)
getErrorCode in class Action
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||