![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
CWorld is a general data class containing whatever is needed to accurately represent the world. More...
#include <World.h>

Public Member Functions | |
| CWorld (CGame &game) | |
| Constructor. More... | |
| ~CWorld () | |
| 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 a reference to the terrain object. More... | |
| CUnitManager & | GetUnitManager () |
| Get a reference to the unit manager object. More... | |
Private Attributes | |
| CGame & | m_Game |
| Reference to the CGame object representing the game. More... | |
| const std::unique_ptr< CTerrain > | m_Terrain |
| The CTerrain object represents the height map. More... | |
| const std::unique_ptr< CUnitManager > | m_UnitManager |
| The CUnitManager that holds all the units in the world. More... | |
| std::unique_ptr< CMapReader > | m_MapReader |
| The map reader gets deleted just after the map is read. 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 & | game | ) |
Constructor.
| game | CGame& game reference to the container game object. |
|
default |
| int CWorld::DeleteMapReader | ( | ) |
Explicitly delete m_MapReader once the map has finished loading.
|
inline |
Get a reference to the terrain object.
|
inline |
Get a reference to the unit manager object.
| 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 |
The map reader gets deleted just after the map is read.
|
private |
The CTerrain object represents the height map.
|
private |
The CUnitManager that holds all the units in the world.