Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Ground Class Reference

#include <ground.h>

List of all members.

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

Gamegame
Rendererrenderer
Demeter::Settings * settings
Demeter::Terrain * terrain
unsigned char * groundGrid
int grid_h
int grid_w
int grid_w_bytes
float sealevel
bool terrainrefreshing


Detailed Description

Terrain data & renderer
Author:
T Kontkanen


Constructor & Destructor Documentation

Ground::Ground Game *   parentGame
 

Ground::~Ground  
 


Member Function Documentation

void Ground::cameraMoved  
 

Call this if modelview matrices have changed.

bool Ground::getBit unsigned char *   buffer,
unsigned int   bitnum
const
 

float Ground::getElevation float   x,
float   y
const
 

bool Ground::getMapReservationLine float   x1,
float   y1,
float   x2,
float   y2
const
 

bool Ground::getMapReservationPoint float   x,
float   y
const
 

float Ground::getTerrainHeight   const
 

float Ground::getTerrainWidth   const
 

bool Ground::isSameReservationPoint float   x,
float   y,
float   x2,
float   y2
const
 

int Ground::loadMap const char *   fname
 

void Ground::renderTerrain  
 

Render ground.

void Ground::setBit unsigned char *   buffer,
unsigned int   bitnum,
bool   state
 

void Ground::setMapReservationLine float   x1,
float   y1,
float   x2,
float   y2,
bool   state
 

void Ground::setMapReservationPoint float   x,
float   y,
bool   state
 

void Ground::swapInts int &   i1,
int &   i2
const [inline, private]
 

void Ground::toggleTesslation  
 

Toggles ground tesslation, default on. For debugging purposes only.

void Ground::unloadMap  
 


Member Data Documentation

Game* Ground::game [private]
 

int Ground::grid_h [private]
 

int Ground::grid_w [private]
 

int Ground::grid_w_bytes [private]
 

unsigned char* Ground::groundGrid [private]
 

Renderer* Ground::renderer [private]
 

float Ground::sealevel [private]
 

Demeter::Settings* Ground::settings [private]
 

terrain data.

Demeter::Terrain* Ground::terrain [private]
 

bool Ground::terrainrefreshing [private]
 


The documentation for this class was generated from the following file:
Generated at Fri Oct 5 20:23:53 2001 for Executor by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001