Pyrogenesis  trunk
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>

Collaboration diagram for CSimContext:
Collaboration graph
[legend]

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.

Constructor & Destructor Documentation

CSimContext::CSimContext ( )
CSimContext::~CSimContext ( )

Member Function Documentation

CComponentManager & CSimContext::GetComponentManager ( ) const
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...)

ScriptInterface & CSimContext::GetScriptInterface ( ) const
CEntityHandle CSimContext::GetSystemEntity ( ) const
inline
CTerrain & CSimContext::GetTerrain ( ) const
CUnitManager & CSimContext::GetUnitManager ( ) const
bool CSimContext::HasUnitManager ( ) const
void CSimContext::SetComponentManager ( CComponentManager man)
void CSimContext::SetSystemEntity ( CEntityHandle  ent)
inline

Friends And Related Function Documentation

friend class CSimulation2Impl
friend

Member Data Documentation

CComponentManager* CSimContext::m_ComponentManager
private
CEntityHandle CSimContext::m_SystemEntity
private
CTerrain* CSimContext::m_Terrain
private
CUnitManager* CSimContext::m_UnitManager
private

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