24 #ifndef INCLUDED_WORLD 25 #define INCLUDED_WORLD 30 #ifndef ERROR_GROUP_GAME_DEFINED 31 #define ERROR_GROUP_GAME_DEFINED 39 class CTerritoryManager;
76 void RegisterInit(
const CStrW& mapFile, JSRuntime* rt, JS::HandleValue settings,
int playerID);
81 void RegisterInitRMS(
const CStrW& scriptFile, JSRuntime* rt, JS::HandleValue settings,
int playerID);
The container that holds the rules, resources and attributes of the game.
Definition: Game.h:40
CLightEnv g_LightEnv
File : World.cpp Project : engine Description : Contains the CWorld Class implementation.
Definition: World.cpp:49
void RegisterInitRMS(const CStrW &scriptFile, JSRuntime *rt, JS::HandleValue settings, int playerID)
Definition: World.cpp:98
CUnitManager & GetUnitManager()
Get a reference to the unit manager object.
Definition: World.h:96
CTerritoryManager * GetTerritoryManager()
Get the pointer to the territory manager object.
Definition: World.h:103
ERROR_TYPE(Game_World, MapLoadFailed)
~CWorld()
Destructor.
Definition: World.cpp:120
ERROR_SUBGROUP(Game, World)
CTerrain * GetTerrain()
Get the pointer to the terrain object.
Definition: World.h:88
CWorld is a general data class containing whatever is needed to accurately represent the world...
Definition: World.h:47
Definition: UnitManager.h:36
CWorld(CGame *pGame)
Constructor.
Definition: World.cpp:57
Class CLightEnv: description of a lighting environment - contains all the necessary parameters for re...
Definition: LightEnv.h:36
CTerritoryManager * m_TerritoryManager
pointer to the CTerritoryManager that holds territory matrix for the world.
Definition: World.h:67
CTerrain * m_Terrain
pointer to the CTerrain object representing the height map.
Definition: World.h:58
CUnitManager * m_UnitManager
pointer to the CUnitManager that holds all the units in the world.
Definition: World.h:63
void RegisterInit(const CStrW &mapFile, JSRuntime *rt, JS::HandleValue settings, int playerID)
Initializes the game world with the attributes provided.
Definition: World.cpp:68
CGame * m_pGame
pointer to the CGame object representing the game.
Definition: World.h:53