|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcivquest.CoordinateSystem
civquest.FlatCoSystem
Coordinate system for a "flat" map, meaning a map with cells laid out in a 2d matrix.
Field Summary | |
static Coordinate |
n
|
static int |
nx
|
Constructor Summary | |
FlatCoSystem()
|
Method Summary | |
Coordinate |
getCoordinate(Coordinate from,
int direction)
Determines, for this coordinate system, the coordinate of the cell in the given direction. |
java.util.Vector |
getDirectNeighborCoordinates(Coordinate coord)
The same function as above, it just returns the coordinates in a Vector (for the case that this helps the caller). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Coordinate n
public static final int nx
Constructor Detail |
public FlatCoSystem()
Method Detail |
public Coordinate getCoordinate(Coordinate from, int direction)
CoordinateSystem
getCoordinate
in class CoordinateSystem
public java.util.Vector getDirectNeighborCoordinates(Coordinate coord)
CoordinateSystem
getDirectNeighborCoordinates
in class CoordinateSystem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |