|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface must be implemented
in the robot class of each group
in order to provide a unified interface
to the arena.
| Method Summary | |
boolean |
exchangeOk(CardData myCard,
CardData otherCard)
ask robot if it wants to exchange it's own card ( "myCard" ) with the card of another robot ( "otherCard" ) |
CardData |
exchangeProposal(CardData[] cards)
ask the robot for a card he wants to exchange If the robot does not own the returned card the robot is disqualified. parameter "cards" : actual hand of robot return values : null - robot does not want to exchange Reference to CardData Object - robot wants to offer this card |
AbstractRobotAction |
getCommand(RobotData robotData)
ask robot for next command If the return value is null the arena disqualifies the robot. |
| Method Detail |
public AbstractRobotAction getCommand(RobotData robotData)
robotData - current status of the robotpublic CardData exchangeProposal(CardData[] cards)
cards - set of cards the robot owns
public boolean exchangeOk(CardData myCard,
CardData otherCard)
myCard - card the robot wants to give awayotherCard - card the robot wants to have
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||