Class MultiGrid2D
Defined in File multigrid2d.h
Inheritance Relationships
Base Type
public kami::Grid2D
(Class Grid2D)
Class Documentation
-
class MultiGrid2D : public kami::Grid2D
A two-dimensional grid where each cell may contain multiple agents.
The grid is linear and may wrap around in either dimension.
See also
See also
Public Functions
-
MultiGrid2D(unsigned int maximum_x, unsigned int maximum_y, bool wrap_x, bool wrap_y)
Constructor.
- Parameters
maximum_x – [in] the length of the grid in the first dimension
maximum_y – [in] the length of the grid in the second dimension
wrap_x – [in] should the grid wrap around on itself in the first dimension
wrap_y – [in] should the grid wrap around on itself in the second dimension
-
MultiGrid2D(unsigned int maximum_x, unsigned int maximum_y, bool wrap_x, bool wrap_y)