de.uni_paderborn.robots.robotArenaInterface
Interface RobotFunctions
- public interface RobotFunctions
This interface must be implemented
in the robot class of each group
in order to provide a unified interface
to the arena.
version 2.0 ( by Interface group )
( history at end of file )
|
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 if it wants to exchange a card
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
If the robot does not own the returned
card the robot is disqualified. |
AbstractRobotAction |
getCommand(RobotData robotData)
ask robot for next command
If the return value is null the arena
disqualifies the robot. |
getCommand
public AbstractRobotAction getCommand(RobotData robotData)
- ask robot for next command
If the return value is null the arena
disqualifies the robot.
exchangeProposal
public CardData exchangeProposal(CardData[] cards)
- ask the robot if it wants to exchange a card
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
If the robot does not own the returned
card the robot is disqualified.
exchangeOk
public 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" )