24 #ifndef INCLUDED_WORLD 25 #define INCLUDED_WORLD 30 #ifndef ERROR_GROUP_GAME_DEFINED 31 #define ERROR_GROUP_GAME_DEFINED The container that holds the rules, resources and attributes of the game.
Definition: Game.h:42
CLightEnv g_LightEnv
Global light settings.
Definition: World.cpp:44
CUnitManager & GetUnitManager()
Get a reference to the unit manager object.
Definition: World.h:99
ERROR_TYPE(Game_World, MapLoadFailed)
Abstraction around a SpiderMonkey JSContext.
Definition: ScriptContext.h:40
~CWorld()
Destructor.
Definition: World.cpp:117
ERROR_SUBGROUP(Game, World)
CTerrain * GetTerrain()
Get the pointer to the terrain object.
Definition: World.h:91
Definition: MapReader.h:45
CWorld is a general data class containing whatever is needed to accurately represent the world...
Definition: World.h:47
void RegisterInit(const CStrW &mapFile, const ScriptContext &cx, JS::HandleValue settings, int playerID)
Initializes the game world with the attributes provided.
Definition: World.cpp:63
Definition: UnitManager.h:35
int DeleteMapReader()
Explicitly delete m_MapReader once the map has finished loading.
Definition: World.cpp:107
CMapReader * m_MapReader
Definition: World.h:65
void RegisterInitRMS(const CStrW &scriptFile, const ScriptContext &cx, JS::HandleValue settings, int playerID)
Definition: World.cpp:92
CWorld(CGame *pGame)
Constructor.
Definition: World.cpp:52
Class CLightEnv: description of a lighting environment - contains all the necessary parameters for re...
Definition: LightEnv.h:36
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
CGame * m_pGame
pointer to the CGame object representing the game.
Definition: World.h:53