| RollingGrid::RollingGrid |
( |
int |
width, |
|
|
int |
height, |
|
|
int |
resolution |
|
) |
| |
constructor
- Parameters
-
| width | The width of the grid in number of grid cells |
| height | The height of the grid in number of grid cells |
| resolution | The width and height of each grid cell |
| luabind::scope RollingGrid::luaBindings |
( |
| ) |
|
|
static |
| void RollingGrid::move |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| |
Moves the grid a certain distance in world coordinates.
- Parameters
-
| int & RollingGrid::operator() |
( |
long |
x, |
|
|
long |
y |
|
) |
| |
Get read-write access to a location in the grid. Out of bounds accesses are useless but harmless.
- Parameters
-
| x | X coordinate to access, in world coordinates. |
| y | Y coordinate to access, in world coordinates. |
The documentation for this class was generated from the following files:
- /home/hhyyrylainen/Projects/thrive_install/thrive/src/engine/rolling_grid.h
- /home/hhyyrylainen/Projects/thrive_install/thrive/src/engine/rolling_grid.cpp