OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
MWBase::Environment Class Reference

Central hub for mw-subsystems. More...

#include <environment.hpp>

Collaboration diagram for MWBase::Environment:

Public Member Functions

 Environment ()
 
 ~Environment ()
 
void setWorld (World *world)
 
void setSoundManager (SoundManager *soundManager)
 
void setScriptManager (MWBase::ScriptManager *scriptManager)
 
void setWindowManager (WindowManager *windowManager)
 
void setMechanicsManager (MechanicsManager *mechanicsManager)
 
void setDialogueManager (DialogueManager *dialogueManager)
 
void setJournal (Journal *journal)
 
void setInputManager (InputManager *inputManager)
 
void setStateManager (StateManager *stateManager)
 
void setFrameDuration (float duration)
 Set length of current frame in seconds. More...
 
WorldgetWorld () const
 
SoundManagergetSoundManager () const
 
ScriptManagergetScriptManager () const
 
WindowManagergetWindowManager () const
 
MechanicsManagergetMechanicsManager () const
 
DialogueManagergetDialogueManager () const
 
JournalgetJournal () const
 
InputManagergetInputManager () const
 
StateManagergetStateManager () const
 
float getFrameDuration () const
 
void cleanup ()
 Delete all mw*-subsystems. More...
 

Static Public Member Functions

static const Environmentget ()
 Return instance of this class. More...
 

Private Member Functions

 Environment (const Environment &)
 not implemented More...
 
Environmentoperator= (const Environment &)
 not implemented More...
 

Private Attributes

WorldmWorld
 
SoundManagermSoundManager
 
ScriptManagermScriptManager
 
WindowManagermWindowManager
 
MechanicsManagermMechanicsManager
 
DialogueManagermDialogueManager
 
JournalmJournal
 
InputManagermInputManager
 
StateManagermStateManager
 
float mFrameDuration
 

Static Private Attributes

static EnvironmentsThis = 0
 

Detailed Description

Central hub for mw-subsystems.

This class allows each mw-subsystem to access any others subsystem's top-level manager class.

Attention
Environment takes ownership of the manager class instances it is handed over in the set* functions.

Constructor & Destructor Documentation

MWBase::Environment::Environment ( const Environment )
private

not implemented

MWBase::Environment::Environment ( )
MWBase::Environment::~Environment ( )

Member Function Documentation

void MWBase::Environment::cleanup ( )

Delete all mw*-subsystems.

const MWBase::Environment & MWBase::Environment::get ( )
static

Return instance of this class.

MWBase::DialogueManager * MWBase::Environment::getDialogueManager ( ) const

Here is the caller graph for this function:

float MWBase::Environment::getFrameDuration ( ) const

Here is the caller graph for this function:

MWBase::InputManager * MWBase::Environment::getInputManager ( ) const

Here is the caller graph for this function:

MWBase::Journal * MWBase::Environment::getJournal ( ) const

Here is the caller graph for this function:

MWBase::MechanicsManager * MWBase::Environment::getMechanicsManager ( ) const
MWBase::ScriptManager * MWBase::Environment::getScriptManager ( ) const

Here is the caller graph for this function:

MWBase::SoundManager * MWBase::Environment::getSoundManager ( ) const
MWBase::StateManager * MWBase::Environment::getStateManager ( ) const

Here is the caller graph for this function:

MWBase::WindowManager * MWBase::Environment::getWindowManager ( ) const
MWBase::World * MWBase::Environment::getWorld ( ) const
Environment& MWBase::Environment::operator= ( const Environment )
private

not implemented

void MWBase::Environment::setDialogueManager ( DialogueManager dialogueManager)
void MWBase::Environment::setFrameDuration ( float  duration)

Set length of current frame in seconds.

void MWBase::Environment::setInputManager ( InputManager inputManager)
void MWBase::Environment::setJournal ( Journal journal)
void MWBase::Environment::setMechanicsManager ( MechanicsManager mechanicsManager)
void MWBase::Environment::setScriptManager ( MWBase::ScriptManager scriptManager)
void MWBase::Environment::setSoundManager ( SoundManager soundManager)
void MWBase::Environment::setStateManager ( StateManager stateManager)
void MWBase::Environment::setWindowManager ( WindowManager windowManager)
void MWBase::Environment::setWorld ( World world)

Member Data Documentation

DialogueManager* MWBase::Environment::mDialogueManager
private
float MWBase::Environment::mFrameDuration
private
InputManager* MWBase::Environment::mInputManager
private
Journal* MWBase::Environment::mJournal
private
MechanicsManager* MWBase::Environment::mMechanicsManager
private
ScriptManager* MWBase::Environment::mScriptManager
private
SoundManager* MWBase::Environment::mSoundManager
private
StateManager* MWBase::Environment::mStateManager
private
WindowManager* MWBase::Environment::mWindowManager
private
World* MWBase::Environment::mWorld
private
MWBase::Environment * MWBase::Environment::sThis = 0
staticprivate

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