|
|||||||||
| 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.LazyRobot
This robot is used for testing only.
A Robot that does nothing, but with a legal NoAction!
| Field Summary | |
private java.util.Random |
random
random number generator |
| Constructor Summary | |
LazyRobot()
constructor |
|
| Method Summary | |
boolean |
exchangeOk(CardData myCard,
CardData otherCard)
always returns true |
CardData |
exchangeProposal(CardData[] cards)
returns random card |
AbstractRobotAction |
getCommand(RobotData robotData)
always returns NoAction |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.util.Random random
| Constructor Detail |
public LazyRobot()
| 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 | ||||||||