#include <Terrain.h>
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 |
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 | ( | ) |
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:
map< TerrainType, SDL_Surface * > Terrain::_imageMap [static, private] |
map< TerrainType, Terrain::TerrainBaseType * > Terrain::_possibleTypes [static, private] |
int Terrain::_refCount = 0 [static, private] |
TerrainBaseType* Terrain::_type [private] |
Definition at line 22 of file Terrain.h.
Referenced by getMoveMultiplier(), getType(), isPassable(), and Terrain().