cad.simcad.maps
Class CellSquare

java.lang.Object
  |
  +--cad.simcad.maps.CellGroup
        |
        +--cad.simcad.maps.CellRectangle
              |
              +--cad.simcad.maps.CellSquare
All Implemented Interfaces:
java.util.Comparator, PathPlace

public class CellSquare
extends CellRectangle

Version:
1.0
Author:
Charles-Philip Bentley

Field Summary
 
Fields inherited from class cad.simcad.maps.CellGroup
_art, _cellMap, _cellNum, _cells, _maxHeight, _maxWidth, _ref, _value, _z
 
Constructor Summary
CellSquare(CellMap cellMap, Cell[][] cells)
          Creates new CellRectangle
CellSquare(CellMap cellMap, Cell[][] cells, Cell ref)
          Creates new CellRectangle
 
Method Summary
 CellGroup createInstance(CellMap cellMap, Cell[][] newCells)
           
 CellGroup createInstance(CellMap cellMap, Cell[][] newCells, Cell ref)
           
 
Methods inherited from class cad.simcad.maps.CellRectangle
compare, equals, getCostToReachFrom, getInnerMapUnitBoundary, getNumberOfUnits, getSteepRatio, sortMapUnits
 
Methods inherited from class cad.simcad.maps.CellGroup
belongsTo, contained, contains, containsMapUnit, getAdjacentPathPlaces, getAverageAltitude, getBiggestXLength, getBiggestYLength, getCells, getDifference, getEastX, getElevation, getGroupHeight, getGroupWidth, getImplementingObject, getIntersection, getMap, getMyAdjacentMapUnits, getNorthY, getNotMyAdjacentMapUnits, getNumberOfCells, getOuterMapUnitBoundary, getRatio, getResolution, getSouthY, getUnits, getValue, getWestX, getX, getY, intersection, isAdjacent, moveEast, moveNorth, moveNorthEast, moveNorthWest, moveSouth, moveSouthEast, moveSouthWest, moveWest, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

CellSquare

public CellSquare(CellMap cellMap,
                  Cell[][] cells,
                  Cell ref)
Creates new CellRectangle


CellSquare

public CellSquare(CellMap cellMap,
                  Cell[][] cells)
Creates new CellRectangle

Method Detail

createInstance

public CellGroup createInstance(CellMap cellMap,
                                Cell[][] newCells)
Overrides:
createInstance in class CellRectangle

createInstance

public CellGroup createInstance(CellMap cellMap,
                                Cell[][] newCells,
                                Cell ref)
Overrides:
createInstance in class CellRectangle

Logo

With the help of www.sourceforge.net and www.info.ucl.ac.be