|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.uni_paderborn.robots.robot.group10.Stupid
This is our first moving robot, stupid, but moving
| Field Summary | |
private int |
maxEnergy
memorizes maxEnergy |
private java.util.Random |
random
random number generator |
private int |
turnNo
turn counter |
| Constructor Summary | |
Stupid()
constructor |
|
| Method Summary | |
boolean |
exchangeOk(CardData myCard,
CardData otherCard)
Robot always accepts cards changing. |
CardData |
exchangeProposal(CardData[] cards)
Returns an random card, if the robot has any cards. |
AbstractRobotAction |
getCommand(RobotData robotData)
Returns next command. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.util.Random random
private int maxEnergy
private int turnNo
| Constructor Detail |
public Stupid()
| Method Detail |
public AbstractRobotAction getCommand(RobotData robotData)
getCommand in interface RobotFunctionsde.uni_paderborn.robots.robotArenaInterface.RobotFunctionsrobotData - current status of the robotpublic CardData exchangeProposal(CardData[] cards)
exchangeProposal in interface RobotFunctionsde.uni_paderborn.robots.robotArenaInterface.RobotFunctionscards - set of cards the robot owns
public boolean exchangeOk(CardData myCard,
CardData otherCard)
exchangeOk in interface RobotFunctionsde.uni_paderborn.robots.robotArenaInterface.RobotFunctionsmyCard - 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 | ||||||||