|
0 A.D. | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
boost::noncopyable
|
+--CWorld
in World.hCWorld is a general data class containing whatever is needed to accurately represent the world. This includes the map, entities, influence maps, tiles, heightmap, etc.
Field Summary | |
private CEntityManager* |
m_EntityManager
pointer to the CEntityManager that holds all the entities in the world. |
private CLOSManager* |
m_LOSManager
pointer to the CLOSManager that holds the visibility matrix for the world. |
private CGame* |
m_pGame
pointer to the CGame object representing the game. |
private CProjectileManager* |
m_ProjectileManager
pointer to the CProjectileManager that holds all the projectiles in the world. |
private CTerrain* |
m_Terrain
pointer to the CTerrain object representing the height map. |
private CTerritoryManager* |
m_TerritoryManager
pointer to the CTerritoryManager that holds territory matrix for the world. |
private CUnitManager* |
m_UnitManager
pointer to the CUnitManager that holds all the units in the world. |
Constructor Summary | |
CWorld( CGame* pGame )
Constructor. |
|
~CWorld()
Destructor. |
Method Summary | |
inline CEntityManager& |
GetEntityManager()
Get a reference to the entity manager object. |
inline CLOSManager* |
GetLOSManager()
Get the pointer to the LOS manager object. |
inline CProjectileManager& |
GetProjectileManager()
Get a reference to the projectile manager object. |
inline CTerrain* |
GetTerrain()
Get the pointer to the terrain object. |
inline CTerritoryManager* |
GetTerritoryManager()
Get the pointer to the territory manager object. |
inline CUnitManager& |
GetUnitManager()
Get a reference to the unit manager object. |
void |
Initialize( CGameAttributes* pGameAttributes )
Sets up the game world and loads required world resources. |
void |
RegisterInit( CGameAttributes* pGameAttributes )
Initializes the game world with the attributes provided. |
void |
RewriteMap()
Redraw the world. |
Field Detail |
private CEntityManager* m_EntityManager;
private CLOSManager* m_LOSManager;
private CGame* m_pGame;
private CProjectileManager* m_ProjectileManager;
private CTerrain* m_Terrain;
private CTerritoryManager* m_TerritoryManager;
private CUnitManager* m_UnitManager;
Constructor Detail |
public CWorld( CGame* pGame );
CGame
- * pGame pointer to the container game object.public ~CWorld();
Method Detail |
public inline CEntityManager& GetEntityManager();
public inline CLOSManager* GetLOSManager();
public inline CProjectileManager& GetProjectileManager();
public inline CTerrain* GetTerrain();
public inline CTerritoryManager* GetTerritoryManager();
public inline CUnitManager& GetUnitManager();
public void Initialize( CGameAttributes* pGameAttributes );
CGameAttributes
- * pGameAttributes pointer to the game attribute values.public void RegisterInit( CGameAttributes* pGameAttributes );
CGameAttributes
- * pGameAttributes pointer to the game attribute values.public void RewriteMap();
|
0 A.D.
Generated on September 04, 2007 at 18:13 CppDoc v2.4.0 |
|||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |