|
|||||||||
| 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.MoveStrategy
one of the different abstract Strategies, the robot looks for the nearest unknown field
| Field Summary | |
private int |
blockingRobot
Counts how many rounds this robot did NopActions because another robot was in the way |
private boolean |
onAlternativeCardPath
Indicates if the robot is on an alternative card path. |
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 | |
MoveStrategy(CardFinder robot)
constructor for this class |
|
| Method Summary | |
AbstractRobotAction |
getCommand()
getCommand method |
| 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 int blockingRobot
private Map.ShortestPath shortestPath
private boolean onAlternativeCardPath
| Constructor Detail |
public MoveStrategy(CardFinder robot)
robot - a reference to the current robot| 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 | ||||||||