50 _engine(&engine), _console(&console) {
81 std::vector<Common::UString> characters;
84 if (characters.empty())
87 _campaign->load(
"neverwinter nights 2 campaign");
88 _campaign->usePC(*characters.begin(),
true);
147 if (cam.
empty() || (cam ==
"."))
150 campaigns.push_back(cam);
The context handling the gameplay in Neverwinter Nights 2.
Neverwinter Nights 2 (debug) console.
A class holding an UTF-8 string.
static UString getExtension(const UString &p)
Return a file name's extension.
The global config manager.
void playAmbientMusic(Common::UString music="")
Play the specified music (or the area's default) as ambient music.
An area in Neverwinter Nights 2, holding all objects, room tiles and terrain within, as well as general area properties like the current background music and ambient sounds.
The context holding a Neverwinter Nights 2 campaign.
The context holding a Neverwinter Nights 2 area.
bool equalsIgnoreCase(const UString &str) const
static void getCampaigns(std::vector< Common::UString > &campaigns)
Return a list of all campaigns.
std::list< UString >::const_iterator const_iterator
::Engines::Console * _console
Exception that provides a stack of explanations.
The context needed to run a Neverwinter Nights 2 module.
Basic exceptions to throw.
Neverwinter Nights 2 engine functions.
#define ConfigMan
Shortcut for accessing the config manager.
The global events manager.
void playMusic(const Common::UString &music="")
Overwrite all currently playing music.
static void getModules(std::vector< Common::UString > &modules)
Return a list of all modules.
bool empty() const
Is the string empty?
Common::ScopedPtr< Functions > _functions
static UString getDirectory(const UString &p)
Return a path's directory.
Common::ScopedPtr< Campaign > _campaign
#define EventMan
Shortcut for accessing the events manager.
static UString getStem(const UString &p)
Return a file name's stem.
static UString relativize(const UString &basePath, const UString &path)
Return the path relative to the base path.
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.
Campaign & getCampaign()
Return the campaign context.
void stopMusic()
Force all currently playing music stopped.
static void getCharacters(std::vector< Common::UString > &characters, bool local)
Return a list of local player characters.
Engine class handling Neverwinter Nights 2.
Game(NWN2Engine &engine, ::Engines::Console &console)
Module & getModule()
Return the module context.
static UString getFile(const UString &p)
Return a file name without its path.
Utility class for manipulating file paths.
const_iterator end() const
Return a const_iterator pointing past the end of the list.
void stopAmbientMusic()
Stop the ambient music.