Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | Friends | List of all members
CSimContext Class Reference

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 ()
 
CComponentManagerGetComponentManager () const
 
void SetComponentManager (CComponentManager *man)
 
bool HasUnitManager () const
 
CUnitManagerGetUnitManager () const
 
CTerrainGetTerrain () const
 
ScriptInterfaceGetScriptInterface () 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

CComponentManagerm_ComponentManager
 
CUnitManagerm_UnitManager
 
CTerrainm_Terrain
 
CEntityHandle m_SystemEntity
 

Friends

class CSimulation2Impl
 

Detailed Description

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.

Constructor & Destructor Documentation

CSimContext::CSimContext ( )

Definition at line 26 of file SimContext.cpp.

CSimContext::~CSimContext ( )

Definition at line 31 of file SimContext.cpp.

Member Function Documentation

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.

CEntityHandle CSimContext::GetSystemEntity ( ) const
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.

void CSimContext::SetSystemEntity ( CEntityHandle  ent)
inline

Definition at line 48 of file SimContext.h.

Friends And Related Function Documentation

friend class CSimulation2Impl
friend

Definition at line 64 of file SimContext.h.

Member Data Documentation

CComponentManager* CSimContext::m_ComponentManager
private

Definition at line 58 of file SimContext.h.

CEntityHandle CSimContext::m_SystemEntity
private

Definition at line 62 of file SimContext.h.

CTerrain* CSimContext::m_Terrain
private

Definition at line 60 of file SimContext.h.

CUnitManager* CSimContext::m_UnitManager
private

Definition at line 59 of file SimContext.h.


The documentation for this class was generated from the following files: