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

#include <game.h>

Collaboration diagram for Engines::KotOR::Game:
Collaboration graph
[legend]

Public Member Functions

 Game (KotOREngine &engine, ::Engines::Console &console, const Version &gameVersion)
 
 ~Game ()
 
ModulegetModule ()
 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

KotOREngine_engine
 
Common::ScopedPtr< Module_module
 
Common::ScopedPtr< Functions_functions
 
const Version_gameVersion
 
::Engines::Console_console
 
Sound::ChannelHandle _menuMusic
 

Detailed Description

Definition at line 48 of file game.h.

Constructor & Destructor Documentation

◆ Game()

Engines::KotOR::Game::Game ( KotOREngine engine,
::Engines::Console console,
const Version gameVersion 
)

Definition at line 56 of file game.cpp.

References _functions.

◆ ~Game()

Engines::KotOR::Game::~Game ( )

Definition at line 62 of file game.cpp.

Member Function Documentation

◆ getModule()

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

Return the module context.

Definition at line 65 of file game.cpp.

References _module.

Referenced by Engines::KotOR::Functions::actionMoveToObject(), Engines::KotOR::Functions::actionStartConversation(), Engines::KotOR::Functions::addAvailableNPCByTemplate(), Engines::KotOR::Functions::assignCommand(), Engines::KotOR::Functions::clearAllActions(), Engines::KotOR::Console::cmdAddItem(), Engines::KotOR::Console::cmdExitModule(), Engines::KotOR::Console::cmdFlyCam(), Engines::KotOR::Console::cmdGetPCRoom(), Engines::KotOR::Console::cmdListRoomsVisibleFrom(), Engines::KotOR::Console::cmdLoadModule(), Engines::KotOR::Console::cmdPlayAnim(), Engines::KotOR::Console::cmdShowTriggers(), Engines::KotOR::Console::cmdShowWalkmesh(), Engines::KotOR::Functions::delayCommand(), Engines::KotOR::Functions::destroyObject(), Engines::KotOR::Functions::getArea(), Engines::KotOR::Functions::getFirstPC(), Engines::KotOR::Functions::getGlobalBoolean(), Engines::KotOR::Functions::getGlobalNumber(), Engines::KotOR::Functions::getItemInSlot(), Engines::KotOR::Functions::getModule(), Engines::KotOR::Functions::getObjectByTag(), Engines::KotOR::Functions::getPartyMemberByIndex(), Engines::KotOR::Functions::getPCSpeaker(), Engines::KotOR::Functions::isAvailableCreature(), Engines::KotOR::Functions::isObjectPartyMember(), Engines::KotOR::Functions::setGlobalBoolean(), Engines::KotOR::Functions::setGlobalFadeIn(), Engines::KotOR::Functions::setGlobalFadeOut(), Engines::KotOR::Functions::setGlobalNumber(), Engines::KotOR::Functions::setReturnStrref(), Engines::KotOR::Functions::showPartySelectionGUI(), and Engines::KotOR::Functions::signalEvent().

Here is the caller graph for this function:

◆ getModules()

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

Return a list of all modules.

Definition at line 159 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::KotOR::Console::updateModules().

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

◆ mainMenu()

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

Definition at line 141 of file game.cpp.

References _console, _gameVersion, _module, Engines::Console::disableCommand(), Engines::Console::enableCommand(), EventMan, GfxMan, Engines::KotOR::GUI::hide(), Engines::GUI::run(), and Engines::KotOR::GUI::show().

Referenced by run().

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

◆ playMenuMusic()

void Engines::KotOR::Game::playMenuMusic ( Common::UString  music = "")
private

Definition at line 106 of file game.cpp.

References _menuMusic, Common::UString::empty(), Sound::kSoundTypeMusic, Engines::playSound(), and stopMenuMusic().

Referenced by playMusic().

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

◆ playMusic()

void Engines::KotOR::Game::playMusic ( const Common::UString music = "")

Overwrite all currently playing music.

Definition at line 119 of file game.cpp.

References _module, Engines::KotOR::Area::playAmbientMusic(), and playMenuMusic().

Referenced by Engines::KotOR::Console::cmdPlayMusic().

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

◆ run()

void Engines::KotOR::Game::run ( )

Definition at line 71 of file game.cpp.

References _console, _module, EventMan, mainMenu(), and runModule().

Here is the call graph for this function:

◆ runModule()

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

Definition at line 82 of file game.cpp.

References _module, and EventMan.

Referenced by run().

Here is the caller graph for this function:

◆ stopMenuMusic()

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

Definition at line 115 of file game.cpp.

References _menuMusic, and SoundMan.

Referenced by playMenuMusic(), and stopMusic().

Here is the caller graph for this function:

◆ stopMusic()

void Engines::KotOR::Game::stopMusic ( )

Force all currently playing music stopped.

Definition at line 131 of file game.cpp.

References _module, Engines::KotOR::Area::stopAmbientMusic(), and stopMenuMusic().

Referenced by Engines::KotOR::Console::cmdStopMusic().

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

Member Data Documentation

◆ _console

::Engines::Console* Engines::KotOR::Game::_console
private

Definition at line 75 of file game.h.

Referenced by mainMenu(), and run().

◆ _engine

KotOREngine* Engines::KotOR::Game::_engine
private

Definition at line 68 of file game.h.

◆ _functions

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

Definition at line 71 of file game.h.

Referenced by Game().

◆ _gameVersion

const Version* Engines::KotOR::Game::_gameVersion
private

Definition at line 73 of file game.h.

Referenced by mainMenu().

◆ _menuMusic

Sound::ChannelHandle Engines::KotOR::Game::_menuMusic
private

Definition at line 77 of file game.h.

Referenced by playMenuMusic(), and stopMenuMusic().

◆ _module

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

Definition at line 70 of file game.h.

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


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