Terrain Class Reference

#include <Terrain.h>

List of all members.


Detailed Description

Definition at line 10 of file Terrain.h.

Public Member Functions

void draw (int x, int y) const
double getMoveMultiplier () const
TerrainType getType () const
bool isPassable () const
 Terrain (TerrainType type)
 ~Terrain ()

Private Attributes

TerrainBaseType_type

Static Private Attributes

static map< TerrainType, SDL_Surface * > _imageMap
static map< TerrainType, TerrainBaseType * > _possibleTypes
static int _refCount = 0

Classes

class  TerrainBaseType
class  TerrainGrass
class  TerrainWater


Constructor & Destructor Documentation

Terrain::Terrain ( TerrainType  type  ) 

Definition at line 12 of file Terrain.cpp.

References _imageMap, _possibleTypes, _refCount, _type, GRASS, GRASS_IMAGE, Singleton< T >::instance(), WATER, and WATER_IMAGE.

Here is the call graph for this function:

Terrain::~Terrain (  ) 

Definition at line 35 of file Terrain.cpp.

References _possibleTypes, _refCount, and SAFE_DELETE.


Member Function Documentation

void Terrain::draw ( int  x,
int  y 
) const

Definition at line 63 of file Terrain.cpp.

References _imageMap, getType(), and Singleton< T >::instance().

Referenced by MapTile::drawTerrain().

Here is the call graph for this function:

Here is the caller graph for this function:

double Terrain::getMoveMultiplier (  )  const

Definition at line 58 of file Terrain.cpp.

References _type, and Terrain::TerrainBaseType::getMoveMultiplier().

Here is the call graph for this function:

TerrainType Terrain::getType (  )  const

Definition at line 53 of file Terrain.cpp.

References _type, and Terrain::TerrainBaseType::getType().

Referenced by draw(), and MapTile::getTerrainType().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Terrain::isPassable (  )  const

Definition at line 48 of file Terrain.cpp.

References _type, and Terrain::TerrainBaseType::isPassable().

Referenced by MapTile::isPassable().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

map< TerrainType, SDL_Surface * > Terrain::_imageMap [static, private]

Definition at line 26 of file Terrain.h.

Referenced by draw(), and Terrain().

map< TerrainType, Terrain::TerrainBaseType * > Terrain::_possibleTypes [static, private]

Definition at line 25 of file Terrain.h.

Referenced by Terrain(), and ~Terrain().

int Terrain::_refCount = 0 [static, private]

Definition at line 27 of file Terrain.h.

Referenced by Terrain(), and ~Terrain().

TerrainBaseType* Terrain::_type [private]

Definition at line 22 of file Terrain.h.

Referenced by getMoveMultiplier(), getType(), isPassable(), and Terrain().


The documentation for this class was generated from the following files:
Generated on Fri Sep 22 06:00:27 2006 for X-CLONE by  doxygen 1.4.7