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


Field Summary
private  int blockingRobot
          Counts how many rounds this robot did NopActions because another robot was in the way
(package private)  int card
           
private  Card cardToDrop
           
private  boolean dropCardProcedure
          Does the robot currently drop a card?
(package private)  int exit
           
private  Map map
          The map this strategy uses.
private  boolean moveCardAway
          Does the robot currently move a card out of its way?
static java.lang.String NAME
           
private  boolean onAlternativeCardPath
           
private  LAR robot
           
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.group9.AbstractStrategy
cardWeight, currentRobot, exitWeight, lar, name
 
Constructor Summary
ReactableStrategy(LAR robot)
           
 
Method Summary
 AbstractAction getCommand()
          getCommand method
 
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
 

Field Detail

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?
Constructor Detail

ReactableStrategy

public ReactableStrategy(LAR robot)
Method Detail

getCommand

public AbstractAction getCommand()
getCommand method
Overrides:
getCommand in class AbstractStrategy
Returns:
abstractAction the action to be performed