de.uni_paderborn.robots.robot.group9
Class ExitStrategy

java.lang.Object
  |
  +--de.uni_paderborn.robots.robot.group9.AbstractStrategy
        |
        +--de.uni_paderborn.robots.robot.group9.ExitStrategy

public class ExitStrategy
extends AbstractStrategy

one of the different strategy classes, the robot takes the shortest way to the exit


Field Summary
(package private)  int card
          the card weight
(package private)  int exit
          the exit weight
private  Map map
          The map this strategy uses.
static java.lang.String NAME
           
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
ExitStrategy(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
the card weight

exit

int exit
the exit weight

NAME

public static final java.lang.String NAME

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

ExitStrategy

public ExitStrategy(LAR robot)
Method Detail

getCommand

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