de.uni_paderborn.robots.robot.group9
Class ReactableStrategy
java.lang.Object
|
+--de.uni_paderborn.robots.robot.group9.AbstractStrategy
|
+--de.uni_paderborn.robots.robot.group9.ReactableStrategy
- public class ReactableStrategy
- extends AbstractStrategy
one of the different abstract strategies,
tries to handle unknwon reactables
| Methods inherited from class de.uni_paderborn.robots.robot.group9.AbstractStrategy |
getCardWeight, getCurrentRobot, getExitWeight, getLar, getName, removeYou, setCardWeight, setCurrentRobot, setExitWeight, setLar, setName |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
card
int card
exit
int exit
NAME
public static final java.lang.String NAME
blockingRobot
private int blockingRobot
- Counts how many rounds this robot did NopActions
because another robot was in the way
shortestPath
private Map.ShortestPath shortestPath
- This field stores the shortestPath this strategy uses
between the game rounds
map
private Map map
- The map this strategy uses. For easy access.
robot
private LAR robot
cardToDrop
private Card cardToDrop
onAlternativeCardPath
private boolean onAlternativeCardPath
dropCardProcedure
private boolean dropCardProcedure
- Does the robot currently drop a card? true, if so.
moveCardAway
private boolean moveCardAway
- Does the robot currently move a card out of its way?
ReactableStrategy
public ReactableStrategy(LAR robot)
getCommand
public AbstractAction getCommand()
- getCommand method
- Overrides:
getCommand in class AbstractStrategy
- Returns:
- abstractAction the action to be performed