#include <CellGrid.h>
Public Methods | |
| CellGrid () | |
| virtual | ~CellGrid () |
| void | initGrid (int dsep) |
| void | initCellList () |
| void | getCellAddress (int x, int y) |
Public Attributes | |
| int | col |
| int | row |
| Cell * | grid |
|
|
Constructor of CellGrid calls protected funtion Initialize. |
|
|
Destructor of CellGrid calls protected function Destroy. |
|
||||||||||||
|
Get the address of the cell containing the point (x,y). |
|
|
Initialize CellList for address-index 0, i. e. get all cells on the lower left corner with cell 0 as middle (therefore exactly 4 cells remain). |
|
|
Initialize the grid. All grid cells are of distance dsep. |
1.2.12 written by Dimitri van Heesch,
© 1997-2001