xoreos
0.0.5
|
#include <game.h>
Public Member Functions | |
Game (WitcherEngine &engine, ::Engines::Console &console) | |
~Game () | |
Campaign & | getCampaign () |
Return the campaign context. More... | |
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 | refreshLocalized () |
Refresh all localized strings. More... | |
void | run () |
Static Public Member Functions | |
static void | getCampaigns (std::vector< Common::UString > &campaigns) |
Return a list of all campaigns. More... | |
static void | getModules (std::vector< Common::UString > &modules) |
Return a list of all modules. More... | |
Private Member Functions | |
void | runCampaign () |
Private Attributes | |
WitcherEngine * | _engine |
Common::ScopedPtr< Campaign > | _campaign |
Common::ScopedPtr< Functions > | _functions |
Common::ScopedPtr< LuaBindings > | _bindings |
::Engines::Console * | _console |
Engines::Witcher::Game::Game | ( | WitcherEngine & | engine, |
::Engines::Console & | console | ||
) |
Definition at line 53 of file game.cpp.
References _bindings, and _functions.
Campaign & Engines::Witcher::Game::getCampaign | ( | ) |
Return the campaign context.
Definition at line 61 of file game.cpp.
References _campaign.
Referenced by Engines::Witcher::Console::cmdLoadCampaign(), and Engines::Witcher::Console::cmdLoadModule().
|
static |
Return a list of all campaigns.
Definition at line 153 of file game.cpp.
References ConfigMan, Common::UString::empty(), Common::UString::equalsIgnoreCase(), Common::FilePath::getExtension(), and Common::FilePath::getStem().
Referenced by Engines::Witcher::Console::updateCampaigns().
Module & Engines::Witcher::Game::getModule | ( | ) |
Return the module context.
Definition at line 67 of file game.cpp.
References _campaign.
Referenced by Engines::Witcher::Functions::actionDoCommand(), Engines::Witcher::Functions::assignCommand(), Engines::Witcher::Console::cmdGotoArea(), Engines::Witcher::Console::cmdListAreas(), Engines::Witcher::Console::cmdMove(), Engines::Witcher::Functions::delayCommand(), Engines::Witcher::Functions::getFirstPC(), Engines::Witcher::Functions::getModule(), Engines::Witcher::Functions::getNearestCreature(), Engines::Witcher::Functions::getNearestObject(), Engines::Witcher::Functions::getNearestObjectByTag(), Engines::Witcher::Functions::getObjectByTag(), Engines::Witcher::Functions::getWaypointByTag(), Engines::Witcher::Functions::jumpTo(), Engines::Witcher::Functions::startNewModule(), and Engines::Witcher::Console::updateAreas().
|
static |
Return a list of all modules.
Definition at line 172 of file game.cpp.
References ConfigMan, Common::UString::empty(), Common::UString::equalsIgnoreCase(), Common::FilePath::getExtension(), and Common::FilePath::getStem().
Referenced by Engines::Witcher::Functions::startNewModule(), and Engines::Witcher::Console::updateModules().
void Engines::Witcher::Game::playMusic | ( | const Common::UString & | music = "" | ) |
Overwrite all currently playing music.
Definition at line 124 of file game.cpp.
References _campaign, and Engines::Witcher::Area::playAmbientMusic().
Referenced by Engines::Witcher::Console::cmdPlayMusic().
void Engines::Witcher::Game::refreshLocalized | ( | ) |
void Engines::Witcher::Game::run | ( | ) |
Definition at line 73 of file game.cpp.
References _campaign, _console, EventMan, LuaScriptMan, and runCampaign().
|
private |
void Engines::Witcher::Game::stopMusic | ( | ) |
Force all currently playing music stopped.
Definition at line 135 of file game.cpp.
References _campaign, and Engines::Witcher::Area::stopAmbientMusic().
Referenced by Engines::Witcher::Console::cmdStopMusic().
|
private |
|
private |
Definition at line 78 of file game.h.
Referenced by getCampaign(), getModule(), playMusic(), refreshLocalized(), run(), runCampaign(), and stopMusic().
|
private |
|
private |
|
private |