|
Pyrogenesis
13997
|
Contains pointers to various 'global' objects that are needed by the simulation code, to allow easy access without using real (evil) global variables. More...
#include <SimContext.h>
Public Member Functions | |
| CSimContext () | |
| ~CSimContext () | |
| CComponentManager & | GetComponentManager () const |
| void | SetComponentManager (CComponentManager *man) |
| bool | HasUnitManager () const |
| CUnitManager & | GetUnitManager () const |
| CTerrain & | GetTerrain () const |
| ScriptInterface & | GetScriptInterface () const |
| void | SetSystemEntity (CEntityHandle ent) |
| CEntityHandle | GetSystemEntity () const |
| int | GetCurrentDisplayedPlayer () const |
| Returns the player ID that the current display is being rendered for. More... | |
Private Attributes | |
| CComponentManager * | m_ComponentManager |
| CUnitManager * | m_UnitManager |
| CTerrain * | m_Terrain |
| CEntityHandle | m_SystemEntity |
Friends | |
| class | CSimulation2Impl |
Contains pointers to various 'global' objects that are needed by the simulation code, to allow easy access without using real (evil) global variables.
Definition at line 32 of file SimContext.h.
| CSimContext::CSimContext | ( | ) |
Definition at line 26 of file SimContext.cpp.
| CSimContext::~CSimContext | ( | ) |
Definition at line 31 of file SimContext.cpp.
| CComponentManager & CSimContext::GetComponentManager | ( | ) | const |
Definition at line 35 of file SimContext.cpp.
| int CSimContext::GetCurrentDisplayedPlayer | ( | ) | const |
Returns the player ID that the current display is being rendered for.
Currently relies on g_Game being initialised (evil globals...)
Definition at line 68 of file SimContext.cpp.
| ScriptInterface & CSimContext::GetScriptInterface | ( | ) | const |
Definition at line 63 of file SimContext.cpp.
|
inline |
Definition at line 49 of file SimContext.h.
| CTerrain & CSimContext::GetTerrain | ( | ) | const |
Definition at line 51 of file SimContext.cpp.
| CUnitManager & CSimContext::GetUnitManager | ( | ) | const |
Definition at line 45 of file SimContext.cpp.
| bool CSimContext::HasUnitManager | ( | ) | const |
Definition at line 40 of file SimContext.cpp.
| void CSimContext::SetComponentManager | ( | CComponentManager * | man | ) |
Definition at line 57 of file SimContext.cpp.
|
inline |
Definition at line 48 of file SimContext.h.
|
friend |
Definition at line 64 of file SimContext.h.
|
private |
Definition at line 58 of file SimContext.h.
|
private |
Definition at line 62 of file SimContext.h.
|
private |
Definition at line 60 of file SimContext.h.
|
private |
Definition at line 59 of file SimContext.h.
1.8.5