|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--de.uni_paderborn.robots.robotArenaInterface.AbstractRobotAction
|
+--de.uni_paderborn.robots.robotArenaInterface.ExchangeAction
This class describes a ExchangeAction.
ExchangeAction is a possible return value
of the "getCommand" method.
This Action should be returned
by "getCommand" if a robot wants to
exchange a card from it's hand with
the card on the field in front of it.
The energy of the robot will decrease.
| Field Summary | |
private CardData |
card
card to be put in front of robot. |
| Constructor Summary | |
ExchangeAction(CardData card)
constructor of ExchangeAction. How a Arena handles a bad ExchangeAction If getCard() returns null the robot loses energy but does nothing. |
|
| Method Summary | |
CardData |
getCard()
returns the card to be put. How a Arena handles a bad ExchangeAction If getCard() returns null the robot loses energy but does nothing. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private CardData card
| Constructor Detail |
public ExchangeAction(CardData card)
CardData - Card to be put in front of robot.| Method Detail |
public CardData getCard()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||