CApplication Class Reference

This module is the module that is initialized in execution start and updated in a continous while loop. More...

#include <Application.h>

Inheritance diagram for CApplication:

CSingleton

List of all members.

Public Member Functions

void Init ()
bool Iterate ()
 Gets elapsed time, iterates other modules.
EAppType GetAppType () const
 returns app-type
EAppState GetAppState () const
 returns app-state
bool GetStrictMode () const
 returns true if the application runs in strict mode, else returns false
void SetAppType (EAppType e)
 only works if DEBUG_MODE macro is set
void StartSession_FC ()
void StartSession_TR (string packageName)
void StartSimulation_FC ()
 called when facilitator click start session confirm.
void StartSimulation_TR ()
 called by the session module when "start the session" data package arrives
void EndSimulation_FC ()
 displays trainee score information screen, input does not reach simulation.
void EndSession_FC ()
 facilitator has provided scores -> falls back to FC main menu, closes all connections to trainees,
void EndSession_TR ()
 called when SesModule Package SimEnd arrives, stops simulation on trainee side
void ClearSession_TR ()
 to unload object and map/model/display data.
void EndSimulation_TR ()
 called when SesModule Package SesEnd arrives, displays trainee's score info
void DisconnectedFC_TR ()
 called by network module, only applicable to TR
Ogre::Log * GetLogger ()
 get application logger

Static Public Member Functions

static CApplicationGetInstance ()
 sub classes should implement this for easy access to self (which is a singleton)

Private Member Functions

void StartSession_Shared (string packageName)
 shared session init function that gets called by both trainee and facilitator appications
void LoadBSPMap ()
 loads the bsp map defined in the config file. (load that whenever you please)

Private Attributes

EAppType m_appType
 holds app type, FC or TR
EAppState m_appState
 holds app state, wrt sim and session states.
Ogre::Log * mLog
 application logger


Detailed Description

This module is the module that is initialized in execution start and updated in a continous while loop.

Includes basic app states and methods that should be called on important changes that effect these states


Member Function Documentation

void CApplication::Init (  ) 

Creates and initializes shared modules. Later, if app type is set in config file, calls related functions.

void CApplication::StartSession_FC (  ) 

calls shared session start func, network starts listening, FcPresim is displayed called by button callbacks, (FC only)

void CApplication::StartSession_TR ( string  packageName  ) 

calls shared session start func, sets sound user id, TrPresim is displayed called by the network module


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

Generated on Fri Jun 13 19:46:38 2008 for OPSIMUS by  doxygen 1.5.5