Pyrogenesis
13997
|
CWorld is a general data class containing whatever is needed to accurately represent the world. More...
#include <World.h>
Public Member Functions | |
CWorld (CGame *pGame) | |
Constructor. More... | |
~CWorld () | |
Destructor. More... | |
void | RegisterInit (const CStrW &mapFile, const CScriptValRooted &settings, int playerID) |
Initializes the game world with the attributes provided. More... | |
void | RegisterInitRMS (const CStrW &scriptFile, const CScriptValRooted &settings, int playerID) |
CTerrain * | GetTerrain () |
Get the pointer to the terrain object. More... | |
CUnitManager & | GetUnitManager () |
Get a reference to the unit manager object. More... | |
CTerritoryManager * | GetTerritoryManager () |
Get the pointer to the territory manager object. More... | |
Private Member Functions | |
NONCOPYABLE (CWorld) | |
Private Attributes | |
CGame * | m_pGame |
pointer to the CGame object representing the game. More... | |
CTerrain * | m_Terrain |
pointer to the CTerrain object representing the height map. More... | |
CUnitManager * | m_UnitManager |
pointer to the CUnitManager that holds all the units in the world. More... | |
CTerritoryManager * | m_TerritoryManager |
pointer to the CTerritoryManager that holds territory matrix for the world. More... | |
CWorld is a general data class containing whatever is needed to accurately represent the world.
This includes the map, entities, influence maps, tiles, heightmap, etc.
CWorld::CWorld | ( | CGame * | pGame | ) |
|
inline |
|
inline |
|
inline |
Get a reference to the unit manager object.
|
private |
void CWorld::RegisterInit | ( | const CStrW & | mapFile, |
const CScriptValRooted & | settings, | ||
int | playerID | ||
) |
void CWorld::RegisterInitRMS | ( | const CStrW & | scriptFile, |
const CScriptValRooted & | settings, | ||
int | playerID | ||
) |
|
private |
|
private |
|
private |
|
private |
pointer to the CUnitManager that holds all the units in the world.