civquest
Class CoordinateSystem

java.lang.Object
  extended bycivquest.CoordinateSystem
Direct Known Subclasses:
FlatCoSystem, IsometricCoSystem

public abstract class CoordinateSystem
extends java.lang.Object


Field Summary
 Coordinate n
           
 int nx
           
 
Constructor Summary
CoordinateSystem()
           
 
Method Summary
abstract  Coordinate getCoordinate(Coordinate from, int direction)
          Determines, for this coordinate system, the coordinate of the cell in the given direction.
abstract  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

n

public Coordinate n

nx

public int nx
Constructor Detail

CoordinateSystem

public CoordinateSystem()
Method Detail

getCoordinate

public abstract Coordinate getCoordinate(Coordinate from,
                                         int direction)
Determines, for this coordinate system, the coordinate of the cell in the given direction.


getDirectNeighborCoordinates

public abstract 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).