OpenMW
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
MWBase::Environment Class Reference

Central hub for mw-subsystems. More...

#include <environment.hpp>

List of all members.

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 setFrameDuration (float duration)
 Set length of current frame in seconds.
WorldgetWorld () const
SoundManagergetSoundManager () const
ScriptManagergetScriptManager () const
WindowManagergetWindowManager () const
MechanicsManagergetMechanicsManager () const
DialogueManagergetDialogueManager () const
JournalgetJournal () const
InputManagergetInputManager () const
float getFrameDuration () const
void cleanup ()
 Delete all mw*-subsystems.

Static Public Member Functions

static void setRequestExit ()
static bool getRequestExit ()
static const Environmentget ()
 Return instance of this class.

Private Member Functions

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

Private Attributes

WorldmWorld
SoundManagermSoundManager
ScriptManagermScriptManager
WindowManagermWindowManager
MechanicsManagermMechanicsManager
DialogueManagermDialogueManager
JournalmJournal
InputManagermInputManager
float mFrameDuration

Static Private Attributes

static EnvironmentsThis = 0
static bool sExit = false

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

not implemented


Member Function Documentation

Delete all mw*-subsystems.

Return instance of this class.

static bool MWBase::Environment::getRequestExit ( ) [inline, static]
Environment& MWBase::Environment::operator= ( const Environment ) [private]

not implemented

void MWBase::Environment::setFrameDuration ( float  duration)

Set length of current frame in seconds.

static void MWBase::Environment::setRequestExit ( ) [inline, static]

Member Data Documentation

bool MWBase::Environment::sExit = false [static, private]

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