xoreos
0.0.5
|
#include <game.h>
Public Member Functions | |
Game (NWN2Engine &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 | 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... | |
static void | getCharacters (std::vector< Common::UString > &characters, bool local) |
Return a list of local player characters. More... | |
Private Member Functions | |
void | runCampaign () |
Private Attributes | |
NWN2Engine * | _engine |
Common::ScopedPtr< Campaign > | _campaign |
Common::ScopedPtr< Functions > | _functions |
::Engines::Console * | _console |
Engines::NWN2::Game::Game | ( | NWN2Engine & | engine, |
::Engines::Console & | console | ||
) |
Definition at line 49 of file game.cpp.
References _functions.
Campaign & Engines::NWN2::Game::getCampaign | ( | ) |
Return the campaign context.
Definition at line 58 of file game.cpp.
References _campaign.
Referenced by Engines::NWN2::Console::cmdLoadCampaign(), Engines::NWN2::Console::cmdLoadModule(), Engines::NWN2::Functions::getGlobalBool(), Engines::NWN2::Functions::getGlobalFloat(), Engines::NWN2::Functions::getGlobalInt(), Engines::NWN2::Functions::getGlobalString(), Engines::NWN2::Functions::setGlobalBool(), Engines::NWN2::Functions::setGlobalFloat(), Engines::NWN2::Functions::setGlobalInt(), and Engines::NWN2::Functions::setGlobalString().
|
static |
Return a list of all campaigns.
Definition at line 135 of file game.cpp.
References Common::FileList::begin(), ConfigMan, Common::UString::empty(), Common::FileList::end(), Common::UString::equalsIgnoreCase(), Common::FilePath::getDirectory(), Common::FilePath::getFile(), and Common::FilePath::relativize().
Referenced by Engines::NWN2::Console::updateCampaigns().
|
static |
Return a list of local player characters.
Definition at line 173 of file game.cpp.
References Common::FileList::addDirectory(), Common::FileList::begin(), ConfigMan, Common::UString::empty(), Common::FileList::end(), Common::UString::equalsIgnoreCase(), Common::FilePath::getExtension(), and Common::FilePath::getStem().
Referenced by runCampaign().
Module & Engines::NWN2::Game::getModule | ( | ) |
Return the module context.
Definition at line 64 of file game.cpp.
References _campaign.
Referenced by Engines::NWN2::Functions::actionDoCommand(), Engines::NWN2::Functions::assignCommand(), Engines::NWN2::Console::cmdGotoArea(), Engines::NWN2::Console::cmdListAreas(), Engines::NWN2::Console::cmdMove(), Engines::NWN2::Functions::delayCommand(), Engines::NWN2::Functions::getFactionLeader(), Engines::NWN2::Functions::getFirstPC(), Engines::NWN2::Functions::getIsRosterMember(), Engines::NWN2::Functions::getModule(), Engines::NWN2::Functions::getNearestCreature(), Engines::NWN2::Functions::getNearestObject(), Engines::NWN2::Functions::getNearestObjectByTag(), Engines::NWN2::Functions::getObjectByTag(), Engines::NWN2::Functions::getTag(), Engines::NWN2::Functions::getWaypointByTag(), Engines::NWN2::Functions::jumpTo(), Engines::NWN2::Functions::startNewModule(), and Engines::NWN2::Console::updateAreas().
|
static |
Return a list of all modules.
Definition at line 156 of file game.cpp.
References Common::FileList::begin(), ConfigMan, Common::FileList::end(), Common::UString::equalsIgnoreCase(), Common::FilePath::getExtension(), and Common::FilePath::getStem().
Referenced by Engines::NWN2::Functions::startNewModule(), and Engines::NWN2::Console::updateModules().
void Engines::NWN2::Game::playMusic | ( | const Common::UString & | music = "" | ) |
Overwrite all currently playing music.
Definition at line 113 of file game.cpp.
References _campaign, and Engines::NWN2::Area::playAmbientMusic().
Referenced by Engines::NWN2::Console::cmdPlayMusic().
void Engines::NWN2::Game::run | ( | ) |
|
private |
void Engines::NWN2::Game::stopMusic | ( | ) |
Force all currently playing music stopped.
Definition at line 124 of file game.cpp.
References _campaign, and Engines::NWN2::Area::stopAmbientMusic().
Referenced by Engines::NWN2::Console::cmdStopMusic().
|
private |
Definition at line 76 of file game.h.
Referenced by getCampaign(), getModule(), playMusic(), run(), runCampaign(), and stopMusic().
|
private |
|
private |
|
private |