#include <TerrainTypes.h>
Inherits SubsystemInterface.
Public Member Functions | |
| TerrainTypeCollection (void) | |
| ~TerrainTypeCollection (void) | |
| void | init () |
| void | reset () |
| void | update () |
| TerrainType * | findTerrain (AsciiString name) |
| find terrain by name | |
| TerrainType * | newTerrain (AsciiString name) |
| allocate a new terrain | |
| TerrainType * | firstTerrain (void) |
| get first terrain in list | |
| TerrainType * | nextTerrain (TerrainType *terrainType) |
| get next terrain in list | |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | postProcessLoad () |
| virtual void | draw (void) |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Protected Attributes | |
| TerrainType * | m_terrainList |
| list of available terrain types | |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
The collection of all terrain types
Definition at line 217 of file TerrainTypes.h.
| TerrainTypeCollection::TerrainTypeCollection | ( | void | ) |
Definition at line 81 of file TerrainTypes.cpp.
| TerrainTypeCollection::~TerrainTypeCollection | ( | void | ) |
Definition at line 90 of file TerrainTypes.cpp.
| TerrainType * TerrainTypeCollection::findTerrain | ( | AsciiString | name | ) |
find terrain by name
Find a terrain type given the name
Definition at line 114 of file TerrainTypes.cpp.
|
inline |
get first terrain in list
Definition at line 233 of file TerrainTypes.h.
|
inlinevirtual |
Implements SubsystemInterface.
Definition at line 225 of file TerrainTypes.h.
| TerrainType * TerrainTypeCollection::newTerrain | ( | AsciiString | name | ) |
allocate a new terrain
Allocate a new type, assign the name, and tie to type list
Definition at line 134 of file TerrainTypes.cpp.
|
inline |
get next terrain in list
Definition at line 236 of file TerrainTypes.h.
|
inlinevirtual |
Implements SubsystemInterface.
Definition at line 226 of file TerrainTypes.h.
|
inlinevirtual |
Implements SubsystemInterface.
Definition at line 227 of file TerrainTypes.h.
|
protected |
list of available terrain types
Definition at line 240 of file TerrainTypes.h.