Pyrogenesis
trunk
|
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 ScriptContext &cx, JS::HandleValue settings, int playerID) |
Initializes the game world with the attributes provided. More... | |
void | RegisterInitRMS (const CStrW &scriptFile, const ScriptContext &cx, JS::HandleValue settings, int playerID) |
int | DeleteMapReader () |
Explicitly delete m_MapReader once the map has finished loading. More... | |
CTerrain * | GetTerrain () |
Get the pointer to the terrain object. More... | |
CUnitManager & | GetUnitManager () |
Get a reference to the unit 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... | |
CMapReader * | m_MapReader |
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 | ) |
Constructor.
pGame | CGame * pGame pointer to the container game object. |
CWorld::~CWorld | ( | ) |
Destructor.
int CWorld::DeleteMapReader | ( | ) |
Explicitly delete m_MapReader once the map has finished loading.
|
inline |
Get the pointer to the terrain object.
|
inline |
Get a reference to the unit manager object.
|
private |
void CWorld::RegisterInit | ( | const CStrW & | mapFile, |
const ScriptContext & | cx, | ||
JS::HandleValue | settings, | ||
int | playerID | ||
) |
Initializes the game world with the attributes provided.
void CWorld::RegisterInitRMS | ( | const CStrW & | scriptFile, |
const ScriptContext & | cx, | ||
JS::HandleValue | settings, | ||
int | playerID | ||
) |
|
private |
|
private |
pointer to the CUnitManager that holds all the units in the world.