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>

List of all members.

Public Member Functions

 CSimContext ()
 ~CSimContext ()
CComponentManagerGetComponentManager () const
void SetComponentManager (CComponentManager *man)
bool HasUnitManager () const
CUnitManagerGetUnitManager () const
CTerrainGetTerrain () const
ScriptInterfaceGetScriptInterface () const
int GetCurrentDisplayedPlayer () const
 Returns the player ID that the current display is being rendered for.

Private Attributes

CComponentManagerm_ComponentManager
CUnitManagerm_UnitManager
CTerrainm_Terrain

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
CTerrain & CSimContext::GetTerrain (  )  const
CUnitManager & CSimContext::GetUnitManager (  )  const
bool CSimContext::HasUnitManager (  )  const
void CSimContext::SetComponentManager ( CComponentManager man  ) 

Friends And Related Function Documentation

friend class CSimulation2Impl [friend]

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed May 16 03:15:28 2012 for Pyrogenesis by  doxygen 1.6.3