xoreos  0.0.5
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
Engines::Jade::Game Class Reference

#include <game.h>

Inheritance diagram for Engines::Jade::Game:
Inheritance graph
[legend]
Collaboration diagram for Engines::Jade::Game:
Collaboration graph
[legend]

Public Member Functions

 Game (JadeEngine &engine, ::Engines::Console &console, Aurora::Platform platform)
 
 ~Game ()
 
ModulegetModule ()
 Return the module context. More...
 
void run ()
 
- Public Member Functions inherited from Aurora::NWScript::VariableContainer
 VariableContainer ()
 
virtual ~VariableContainer ()
 
bool hasVariable (const Common::UString &var) const
 
VariablegetVariable (const Common::UString &var, Type type=kTypeVoid)
 
const VariablegetVariable (const Common::UString &var) const
 
void setVariable (const Common::UString &var, const Variable &value)
 
void removeVariable (const Common::UString &var)
 
void clearVariables ()
 

Static Public Member Functions

static void getModules (std::vector< Common::UString > &modules)
 Return a list of all modules. More...
 

Private Member Functions

void playMenuMusic ()
 
void stopMenuMusic ()
 
void mainMenu ()
 
void runModule ()
 

Private Attributes

JadeEngine_engine
 
Common::ScopedPtr< Module_module
 
Common::ScopedPtr< Functions_functions
 
Aurora::Platform _platform
 
::Engines::Console_console
 
Common::ScopedPtr< Sound::XACTWaveBank_musicBank
 
Sound::ChannelHandle _menuMusic
 

Detailed Description

Definition at line 53 of file game.h.

Constructor & Destructor Documentation

◆ Game()

Engines::Jade::Game::Game ( JadeEngine engine,
::Engines::Console console,
Aurora::Platform  platform 
)

Definition at line 52 of file game.cpp.

References _functions.

◆ ~Game()

Engines::Jade::Game::~Game ( )

Definition at line 58 of file game.cpp.

Member Function Documentation

◆ getModule()

Module & Engines::Jade::Game::getModule ( )

◆ getModules()

void Engines::Jade::Game::getModules ( std::vector< Common::UString > &  modules)
static

Return a list of all modules.

Definition at line 160 of file game.cpp.

References Aurora::kFileTypeARE, and ResMan.

Referenced by Engines::Jade::Console::updateModules().

Here is the caller graph for this function:

◆ mainMenu()

void Engines::Jade::Game::mainMenu ( )
private

Definition at line 142 of file game.cpp.

References _console, _module, Engines::Console::disableCommand(), Engines::Console::enableCommand(), EventMan, Engines::Jade::MainMenu::hide(), playMenuMusic(), Engines::GUI::run(), Engines::Jade::MainMenu::show(), and stopMenuMusic().

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playMenuMusic()

void Engines::Jade::Game::playMenuMusic ( )
private

Definition at line 113 of file game.cpp.

References _menuMusic, _musicBank, Common::exceptionDispatcherWarning(), Sound::kSoundTypeMusic, Sound::makeLoopingAudioStream(), SoundMan, and stopMenuMusic().

Referenced by mainMenu().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

void Engines::Jade::Game::run ( )

◆ runModule()

void Engines::Jade::Game::runModule ( )
private

Definition at line 84 of file game.cpp.

References _module, EventMan, and Common::ScopedPtrBase< T, Deallocator >::release().

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stopMenuMusic()

void Engines::Jade::Game::stopMenuMusic ( )
private

Definition at line 138 of file game.cpp.

References _menuMusic, and SoundMan.

Referenced by mainMenu(), and playMenuMusic().

Here is the caller graph for this function:

Member Data Documentation

◆ _console

::Engines::Console* Engines::Jade::Game::_console
private

Definition at line 75 of file game.h.

Referenced by mainMenu(), and run().

◆ _engine

JadeEngine* Engines::Jade::Game::_engine
private

Definition at line 68 of file game.h.

◆ _functions

Common::ScopedPtr<Functions> Engines::Jade::Game::_functions
private

Definition at line 71 of file game.h.

Referenced by Game().

◆ _menuMusic

Sound::ChannelHandle Engines::Jade::Game::_menuMusic
private

Definition at line 78 of file game.h.

Referenced by playMenuMusic(), and stopMenuMusic().

◆ _module

Common::ScopedPtr<Module> Engines::Jade::Game::_module
private

Definition at line 70 of file game.h.

Referenced by getModule(), mainMenu(), run(), and runModule().

◆ _musicBank

Common::ScopedPtr<Sound::XACTWaveBank> Engines::Jade::Game::_musicBank
private

Definition at line 77 of file game.h.

Referenced by playMenuMusic(), and run().

◆ _platform

Aurora::Platform Engines::Jade::Game::_platform
private

Definition at line 73 of file game.h.


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