Public Methods |
| Ground (Game *parentGame) |
| ~Ground () |
int | loadMap (const char *fname) |
void | unloadMap () |
void | cameraMoved () |
void | renderTerrain () |
void | toggleTesslation () |
float | getElevation (float x, float y) const |
float | getTerrainWidth () const |
float | getTerrainHeight () const |
void | setBit (unsigned char *buffer, unsigned int bitnum, bool state) |
bool | getBit (unsigned char *buffer, unsigned int bitnum) const |
void | setMapReservationPoint (float x, float y, bool state) |
bool | getMapReservationPoint (float x, float y) const |
bool | getMapReservationLine (float x1, float y1, float x2, float y2) const |
void | setMapReservationLine (float x1, float y1, float x2, float y2, bool state) |
bool | isSameReservationPoint (float x, float y, float x2, float y2) const |
Private Methods |
void | swapInts (int &i1, int &i2) const |
Private Attributes |
Game * | game |
Renderer * | renderer |
Demeter::Settings * | settings |
Demeter::Terrain * | terrain |
unsigned char * | groundGrid |
int | grid_h |
int | grid_w |
int | grid_w_bytes |
float | sealevel |
bool | terrainrefreshing |