examples.gp.anttrail
Class AntMap
java.lang.Object
examples.gp.anttrail.AntMap
public class AntMap
- extends java.lang.Object
Holds the map of the ant trail. Important: Clone intentionally not supported
here!
- Since:
- 3.01
Constructor Summary |
AntMap(int[][] a_map,
int a_maxMoves)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
FOOD
public static final int FOOD
- See Also:
- Constant Field Values
EMPTY
public static final int EMPTY
- See Also:
- Constant Field Values
TRAIL
public static final int TRAIL
- See Also:
- Constant Field Values
ATE
public static final int ATE
- See Also:
- Constant Field Values
O_UP
public static final int O_UP
- See Also:
- Constant Field Values
O_LEFT
public static final int O_LEFT
- See Also:
- Constant Field Values
O_DOWN
public static final int O_DOWN
- See Also:
- Constant Field Values
O_RIGHT
public static final int O_RIGHT
- See Also:
- Constant Field Values
AntMap
public AntMap(int[][] a_map,
int a_maxMoves)
getMap
public int[][] getMap()
getFromMap
public int getFromMap(int a_x,
int a_y)
getPosX
public int getPosX()
getPosY
public int getPosY()
setPosX
public void setPosX(int a_value)
setPosY
public void setPosY(int a_value)
getMovements
public int[][] getMovements()
getOrientation
public int getOrientation()
setOrientation
public void setOrientation(int a_orientation)
getFoodTaken
public int getFoodTaken()
getMoveCount
public int getMoveCount()
IncrementMoveCounter
public void IncrementMoveCounter()
getWidth
public int getWidth()
getHeight
public int getHeight()