xoreos
0.0.5
|
#include <game.h>
Public Member Functions | |
Game (KotOR2Engine &engine, ::Engines::Console &console, Aurora::Platform platform) | |
~Game () | |
Module & | getModule () |
Return the module context. More... | |
void | playMusic (const Common::UString &music="") |
Overwrite all currently playing music. More... | |
void | stopMusic () |
Force all currently playing music stopped. More... | |
void | run () |
Static Public Member Functions | |
static void | getModules (std::vector< Common::UString > &modules) |
Return a list of all modules. More... | |
Private Member Functions | |
void | stopMenuMusic () |
void | playMenuMusic (Common::UString music="") |
void | mainMenu () |
void | runModule () |
Private Attributes | |
KotOR2Engine * | _engine |
Common::ScopedPtr< Module > | _module |
Common::ScopedPtr< Functions > | _functions |
Aurora::Platform | _platform |
::Engines::Console * | _console |
Sound::ChannelHandle | _menuMusic |
Engines::KotOR2::Game::Game | ( | KotOR2Engine & | engine, |
::Engines::Console & | console, | ||
Aurora::Platform | platform | ||
) |
Definition at line 54 of file game.cpp.
References _functions.
Module & Engines::KotOR2::Game::getModule | ( | ) |
Return the module context.
Definition at line 63 of file game.cpp.
References _module.
Referenced by Engines::KotOR2::Functions::actionStartConversation(), Engines::KotOR2::Functions::assignCommand(), Engines::KotOR2::Console::cmdExitModule(), Engines::KotOR2::Console::cmdFlyCam(), Engines::KotOR2::Console::cmdGetPCRoom(), Engines::KotOR2::Console::cmdListRoomsVisibleFrom(), Engines::KotOR2::Console::cmdLoadModule(), Engines::KotOR2::Console::cmdPlayAnim(), Engines::KotOR2::Console::cmdShowTriggers(), Engines::KotOR2::Console::cmdShowWalkmesh(), Engines::KotOR2::Functions::delayCommand(), Engines::KotOR2::Functions::getFirstPC(), Engines::KotOR2::Functions::getModule(), and Engines::KotOR2::Functions::getObjectByTag().
|
static |
Return a list of all modules.
Definition at line 155 of file game.cpp.
References Common::FileList::addDirectory(), Common::FileList::begin(), ConfigMan, Common::UString::empty(), Common::FileList::end(), Common::UString::endsWith(), Common::FilePath::getStem(), Common::UString::size(), Common::UString::toLower(), and Common::UString::truncate().
Referenced by Engines::KotOR2::Console::updateModules().
|
private |
Definition at line 139 of file game.cpp.
References _console, _module, Engines::Console::disableCommand(), Engines::Console::enableCommand(), EventMan, Engines::KotOR::GUI::hide(), Engines::GUI::run(), and Engines::KotOR::GUI::show().
Referenced by run().
|
private |
Definition at line 104 of file game.cpp.
References _menuMusic, Common::UString::empty(), Sound::kSoundTypeMusic, Engines::playSound(), and stopMenuMusic().
Referenced by playMusic().
void Engines::KotOR2::Game::playMusic | ( | const Common::UString & | music = "" | ) |
Overwrite all currently playing music.
Definition at line 117 of file game.cpp.
References _module, Engines::KotOR2::Area::playAmbientMusic(), and playMenuMusic().
Referenced by Engines::KotOR2::Console::cmdPlayMusic().
void Engines::KotOR2::Game::run | ( | ) |
Definition at line 69 of file game.cpp.
References _console, _module, EventMan, mainMenu(), and runModule().
|
private |
|
private |
Definition at line 113 of file game.cpp.
References _menuMusic, and SoundMan.
Referenced by playMenuMusic(), and stopMusic().
void Engines::KotOR2::Game::stopMusic | ( | ) |
Force all currently playing music stopped.
Definition at line 129 of file game.cpp.
References _module, Engines::KotOR2::Area::stopAmbientMusic(), and stopMenuMusic().
Referenced by Engines::KotOR2::Console::cmdStopMusic().
|
private |
Definition at line 74 of file game.h.
Referenced by mainMenu(), and run().
|
private |
|
private |
|
private |
Definition at line 76 of file game.h.
Referenced by playMenuMusic(), and stopMenuMusic().
|
private |
Definition at line 69 of file game.h.
Referenced by getModule(), mainMenu(), playMusic(), run(), runModule(), and stopMusic().
|
private |