|
|||||||||
| 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.AbstractStrategy
|
+--de.uni_paderborn.robots.robot.group10.ExitStrategy
one of the different strategy classes, the robot takes the shortest way to the exit.
| Field Summary | |
private Map.ShortestPath |
shortestPath
This field stores the shortestPath this strategy uses between the game rounds |
| Fields inherited from class de.uni_paderborn.robots.robot.group10.AbstractStrategy |
cardDroppedDirection, currentRobot, EXCHANGED_CARD, IDLE, lastAction, map, MOVED_AWAY, PICKED_CARD, PICKED_OLD_CARD_AGAIN, pickedCard, random, TURNED_BACK_TO_OLD |
| Constructor Summary | |
ExitStrategy(CardFinder robot)
constructor for this class |
|
| Method Summary | |
AbstractRobotAction |
getCommand()
getCommand method that determines the next action to do |
| Methods inherited from class de.uni_paderborn.robots.robot.group10.AbstractStrategy |
dropCard, findFreeField, getCurrentRobot, getMap, setCurrentRobot, setMap |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private Map.ShortestPath shortestPath
| Constructor Detail |
public ExitStrategy(CardFinder robot)
robot - a reference to the reference of the robot that uses the strategy| Method Detail |
public AbstractRobotAction getCommand()
getCommand in class AbstractStrategy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||