57 _engine(&engine), _gameVersion(&gameVersion), _console(&console) {
110 music =
"mus_theme_cult";
150 int ret = menu.
run();
163 if (moduleDir.
empty())
177 modules.push_back(file);
A creature in a Star Wars: Knights of the Old Republic area.
void playAmbientMusic(Common::UString music="")
Play the specified music (or the area's default) as ambient music.
The global graphics manager.
A class holding an UTF-8 string.
const Version * _gameVersion
The global config manager.
void playMusic(const Common::UString &music="")
Overwrite all currently playing music.
bool endsWith(const UString &with) const
void truncate(const iterator &it)
std::list< UString >::const_iterator const_iterator
virtual void hide()
Hide the GUI.
Common::ScopedPtr< Functions > _functions
uint32 run(uint32 startCode=kStartCodeNone)
Run the GUI.
::Engines::Console * _console
void stopMusic()
Force all currently playing music stopped.
void disableCommand(const Common::UString &cmd, const Common::UString &reason="")
Star Wars: Knights of the Old Republic (debug) console.
#define ConfigMan
Shortcut for accessing the config manager.
The context handling the gameplay in Star Wars: Knights of the Old Republic.
Engine class handling Star Wars: Knights of the Old Republic.
The global events manager.
void stopAmbientMusic()
Stop the ambient music.
The global sound manager, handling all sound output.
bool empty() const
Is the string empty?
#define SoundMan
Shortcut for accessing the sound manager.
An area in Star Wars: Knights of the Old Republic, holding all objects and rooms within, as well as general area properties like the current background music and ambient sounds.
Common::ScopedPtr< Module > _module
Star Wars: Knights of the Old Republic engine functions.
The context holding a Star Wars: Knights of the Old Republic area.
virtual void show()
Show the GUI.
#define EventMan
Shortcut for accessing the events manager.
Sound::ChannelHandle playSound(const Common::UString &sound, Sound::SoundType soundType, bool loop, float volume, bool pitchVariance)
Play this sound resource.
static void getModules(std::vector< Common::UString > &modules)
Return a list of all modules.
void enableCommand(const Common::UString &cmd)
static UString getStem(const UString &p)
Return a file name's stem.
UString toLower() const
Return a lowercased copy of the string.
size_t size() const
Return the size of the string, in characters.
Sound::ChannelHandle _menuMusic
Module & getModule()
Return the module context.
const_iterator begin() const
Return a const_iterator pointing to the beginning of the list.
bool addDirectory(const UString &directory, int recurseDepth=0)
Add a directory to the list.
Generic Aurora engines utility functions.
Game(KotOREngine &engine, ::Engines::Console &console, const Version &gameVersion)
The context needed to run a Star Wars: Knights of the Old Republic module.
void playMenuMusic(Common::UString music="")
#define GfxMan
Shortcut for accessing the graphics manager.
Utility class for manipulating file paths.
const_iterator end() const
Return a const_iterator pointing past the end of the list.