xoreos
0.0.5
|
#include <module.h>
Classes | |
struct | Action |
Public Member Functions | |
Module (::Engines::Console &console, const Version &gameVersion) | |
~Module () | |
const Version & | getGameVersion () const |
void | clear () |
Clear the whole context. More... | |
bool | isLoaded () const |
Is a module currently loaded and ready to run? More... | |
bool | isRunning () const |
Is a module currently running? More... | |
void | load (const Common::UString &module) |
Load a module. More... | |
void | usePC (const Common::UString &bic, bool local) |
Use this character as the player character. More... | |
void | usePC (Creature *creature) |
void | exit () |
Exit the currently running module. More... | |
const Aurora::IFOFile & | getIFO () const |
Return the IFO of the currently loaded module. More... | |
Area * | getCurrentArea () |
Return the area the PC is currently in. More... | |
Creature * | getPC () |
Return the currently playing PC. More... | |
void | showMenu () |
Show the ingame main menu. More... | |
bool | startConversation (const Common::UString &conv, Creature &pc, NWN::Object &obj, bool playHello=true) |
Start a conversation. More... | |
void | delayScript (const Common::UString &script, const Aurora::NWScript::ScriptState &state, Aurora::NWScript::Object *owner, Aurora::NWScript::Object *triggerer, uint32 delay) |
void | movePC (const Common::UString &area) |
Move the player character to this area. More... | |
void | movePC (float x, float y, float z) |
Move the player character to this position within the current area. More... | |
void | movePC (const Common::UString &area, float x, float y, float z) |
Move the player character to this position within this area. More... | |
void | movePC (Area *area, float x, float y, float z) |
Move the player character to this position within this area. More... | |
void | movedPC () |
Notify the module that the PC was moved. More... | |
void | enter () |
Enter the loaded module, starting it. More... | |
void | leave () |
Leave the running module, quitting it. More... | |
void | addEvent (const Events::Event &event) |
Add a single event for consideration into the event queue. More... | |
void | processEventQueue () |
Process the current event queue. More... | |
Public Member Functions inherited from Engines::NWN::Object | |
Object (ObjectType type=kObjectTypeInvalid) | |
virtual | ~Object () |
ObjectType | getType () const |
Return the exact type of the object. More... | |
virtual void | loadModel () |
Load the object's model(s). More... | |
virtual void | unloadModel () |
Unload the object's model(s). More... | |
virtual void | show () |
Show the object's model(s). More... | |
virtual void | hide () |
Hide the object's model(s). More... | |
const std::list< uint32 > & | getIDs () const |
Return the object's model IDs. More... | |
const Common::UString & | getName () const |
Return the object's name. More... | |
const Common::UString & | getDescription () const |
Return the object's description. More... | |
const Common::UString & | getPortrait () const |
Return the object's portrait. More... | |
const Common::UString & | getConversation () const |
Return the object's default conversation (DLG). More... | |
const Aurora::SSFFile * | getSSF () |
Return the object's sound set. More... | |
bool | isStatic () const |
Is the object static (not manipulable at all)? More... | |
bool | isUsable () const |
Can the object be used by the PC? More... | |
bool | isClickable () const |
Can the player click the object? More... | |
Aurora::NWScript::Object * | getPCSpeaker () const |
Return the PC currently speaking with this object. More... | |
void | setPCSpeaker (Aurora::NWScript::Object *pc) |
Set the PC currently speaking with this object. More... | |
Area * | getArea () const |
Return the area this object is currently in. More... | |
virtual void | setArea (Area *) |
Set the area this object is currently in. More... | |
virtual void | getPosition (float &x, float &y, float &z) const |
Return the object's position within its area. More... | |
virtual void | getOrientation (float &x, float &y, float &z, float &angle) const |
Return the object's orientation. More... | |
virtual void | setPosition (float x, float y, float z) |
Set the object's position within its area. More... | |
virtual void | setOrientation (float x, float y, float z, float angle) |
Set the object's orientation. More... | |
Location | getLocation () const |
Create a Location out of the object's area, position and orientation. More... | |
virtual void | highlight (bool enabled) |
(Un)Highlight the object. More... | |
virtual bool | click (Object *triggerer=0) |
The object was clicked. More... | |
virtual void | speakString (const Common::UString &string, uint32 volume) |
Speak the specified string. More... | |
void | speakOneLiner (Common::UString conv, Object *tokenTarget=0) |
Speak an one-liner from the specified conversation file. More... | |
void | stopSound () |
Stop the current object sound. More... | |
void | playSound (const Common::UString &sound, bool pitchVariance=false) |
Play an object sound. More... | |
virtual void | playAnimation (const Common::UString &animation="", bool restart=true, float length=0.0f, float speed=1.0f) |
Play an object animation. More... | |
virtual void | playAnimation (Animation animation, bool restart=true, float length=0.0f, float speed=1.0f) |
Play a default object animation. More... | |
Public Member Functions inherited from Aurora::NWScript::Object | |
Object () | |
uint32 | getID () const |
const Common::UString & | getTag () const |
Public Member Functions inherited from Aurora::NWScript::VariableContainer | |
VariableContainer () | |
virtual | ~VariableContainer () |
bool | hasVariable (const Common::UString &var) const |
Variable & | getVariable (const Common::UString &var, Type type=kTypeVoid) |
const Variable & | getVariable (const Common::UString &var) const |
void | setVariable (const Common::UString &var, const Variable &value) |
void | removeVariable (const Common::UString &var) |
void | clearVariables () |
Public Member Functions inherited from Engines::NWN::ScriptContainer | |
ScriptContainer () | |
~ScriptContainer () | |
const Common::UString & | getScript (Script script) const |
bool | hasScript (Script script) const |
bool | runScript (Script script, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference()) |
Public Member Functions inherited from Engines::NWN::ObjectContainer | |
ObjectContainer () | |
~ObjectContainer () | |
void | clearObjects () |
void | addObject (NWN::Object &object) |
Add an object to this container. More... | |
void | removeObject (NWN::Object &object) |
Remove an object from this container. More... | |
::Aurora::NWScript::Object * | getFirstObjectByType (ObjectType type) const |
Return the first object of this type. More... | |
::Aurora::NWScript::ObjectSearch * | findObjectsByType (ObjectType type) const |
Return a search context to iterate over all objects of this type. More... | |
Public Member Functions inherited from Aurora::NWScript::ObjectContainer | |
ObjectContainer () | |
~ObjectContainer () | |
void | clearObjects () |
void | addObject (Object &object) |
Add an object to this container. More... | |
void | removeObject (Object &object) |
Remove an object from this container. More... | |
Object * | getObjectByID (uint32 id) const |
Find a specific object by ID. More... | |
Object * | getFirstObject () const |
Return the first object. More... | |
Object * | getFirstObjectByTag (const Common::UString &tag) const |
Return the first object with this tag. More... | |
ObjectSearch * | findObjects () const |
Return a search context to iterate over all objects. More... | |
ObjectSearch * | findObjectsByTag (const Common::UString &tag) const |
Return a search context to iterate over all objects with this tag. More... | |
Private Types | |
enum | ActionType { kActionNone = 0, kActionScript = 1 } |
typedef Common::PtrMap< Common::UString, Area > | AreaMap |
typedef std::list< Events::Event > | EventQueue |
typedef std::multiset< Action > | ActionQueue |
Private Member Functions | |
void | unload (bool completeUnload=true) |
Unload the whole shebang. More... | |
void | unloadModule () |
Unload the module. More... | |
void | unloadPC () |
Unload the PC. More... | |
void | unloadTLK () |
Unload the TLK used by the module. More... | |
void | unloadHAKs () |
Unload the HAKs required by the module. More... | |
void | unloadTexturePack () |
Unload the texture pack. More... | |
void | unloadAreas () |
Unload the areas. More... | |
void | preparePremiumModule (const Common::UString &module) |
Check if this is premium module, and if so, prepare its loading. More... | |
void | checkXPs () |
Do we have all expansions needed for the module? More... | |
void | checkHAKs () |
Do we have all HAKs needed for the module? More... | |
void | loadTLK () |
Load the TLK used by the module. More... | |
void | loadHAKs () |
Load the HAKs required by the module. More... | |
void | loadTexturePack () |
Load the texture pack. More... | |
void | loadAreas () |
Load the areas. More... | |
void | setPCTokens () |
void | removePCTokens () |
void | enterArea () |
Enter a new area. More... | |
void | loadModule (const Common::UString &module) |
Load the actual module. More... | |
void | changeModule (const Common::UString &module) |
Schedule a change to a new module. More... | |
void | replaceModule () |
Actually replace the currently running module. More... | |
void | handleEvents () |
void | handleActions () |
Static Private Member Functions | |
static Common::UString | getDescriptionExtra (Common::UString module) |
static Common::UString | getDescriptionCampaign (Common::UString module) |
Private Attributes | |
::Engines::Console * | _console |
const Version * | _gameVersion |
bool | _hasModule |
Do we have a module? More... | |
bool | _running |
Are we currently running a module? More... | |
Common::ScopedPtr< IngameGUI > | _ingameGUI |
The ingame GUI elements. More... | |
Common::ChangeID | _resModule |
Resources added by the module. More... | |
Common::ChangeID | _resTLK |
Resources added for the custom TLK. More... | |
ChangeList | _resHAKs |
Resources added by the HAKs of the module. More... | |
Aurora::IFOFile | _ifo |
The module's IFO. More... | |
Common::ScopedPtr< Creature > | _pc |
The player character we use. More... | |
int | _currentTexturePack |
Common::ChangeID | _resTP [4] |
bool | _exit |
Should we exit the module? More... | |
AreaMap | _areas |
The areas in the current module. More... | |
Common::UString | _newArea |
The new area to enter. More... | |
Area * | _currentArea |
The current area. More... | |
Common::UString | _newModule |
The module we should change to. More... | |
EventQueue | _eventQueue |
ActionQueue | _delayedActions |
Additional Inherited Members | |
Protected Member Functions inherited from Engines::NWN::Object | |
void | loadSSF () |
Load the object's sound set. More... | |
bool | beginConversation (Object *triggerer) |
Begin a conversation between the triggerer and this object. More... | |
virtual bool | createTooltip (Tooltip::Type type) |
Create an empty tooltip. More... | |
bool | createFeedbackTooltip () |
Create a tooltip with the name and/or portrait of the object. More... | |
bool | createSpeechTooltip (const Common::UString &line) |
Create a tooltip with a line the object should speak. More... | |
void | destroyTooltip () |
Destroy all tooltips on this object. More... | |
bool | showFeedbackTooltip () |
Create and show a tooltip with the name and/or portrait of the object. More... | |
bool | showSpeechTooltip (const Common::UString &line) |
Create and show a tooltip with a line the object speaks. More... | |
void | hideTooltip () |
Hide the tooltip again. More... | |
Protected Member Functions inherited from Engines::NWN::ScriptContainer | |
void | clearScripts () |
void | readScripts (const Aurora::GFF3Struct &gff) |
void | readScripts (const ScriptContainer &container) |
Protected Member Functions inherited from Aurora::NWScript::ObjectContainer | |
void | lock () |
void | unlock () |
Protected Attributes inherited from Engines::NWN::Object | |
ObjectType | _type |
The object's type. More... | |
Common::UString | _name |
The object's display name. More... | |
Common::UString | _description |
The object's description. More... | |
Common::UString | _portrait |
The object's portrait. More... | |
Common::UString | _conversation |
The object's default conversation. More... | |
uint32 | _soundSet |
The object's sound set, as an index into soundset.2da. More... | |
Common::ScopedPtr< Aurora::SSFFile > | _ssf |
The object's sound set. More... | |
bool | _static |
Is the object static? More... | |
bool | _usable |
Is the object usable? More... | |
std::list< uint32 > | _ids |
The object's model IDs. More... | |
Aurora::NWScript::Object * | _pcSpeaker |
The current PC speaking with the object. More... | |
Area * | _area |
The area the object is currently in. More... | |
float | _position [3] |
The object's position. More... | |
float | _orientation [4] |
The object's orientation. More... | |
Sound::ChannelHandle | _sound |
The currently playing object sound. More... | |
Common::ScopedPtr< Tooltip > | _tooltip |
The tooltip displayed over the object. More... | |
Protected Attributes inherited from Aurora::NWScript::Object | |
uint32 | _id |
Common::UString | _tag |
|
private |
|
private |
|
private |
|
private |
Engines::NWN::Module::Module | ( | ::Engines::Console & | console, |
const Version & | gameVersion | ||
) |
Definition at line 105 of file module.cpp.
References _console, and _ingameGUI.
Engines::NWN::Module::~Module | ( | ) |
Definition at line 112 of file module.cpp.
References clear().
void Engines::NWN::Module::addEvent | ( | const Events::Event & | event | ) |
Add a single event for consideration into the event queue.
Definition at line 454 of file module.cpp.
References _eventQueue.
|
private |
Schedule a change to a new module.
Definition at line 302 of file module.cpp.
References _newModule.
Referenced by load().
|
private |
Do we have all HAKs needed for the module?
Definition at line 209 of file module.cpp.
References _ifo, Aurora::IFOFile::getHAKs(), and ResMan.
Referenced by loadModule().
|
private |
Do we have all expansions needed for the module?
Definition at line 195 of file module.cpp.
References _ifo, ConfigMan, and Aurora::IFOFile::getExpansions().
Referenced by loadModule().
void Engines::NWN::Module::clear | ( | ) |
Clear the whole context.
Definition at line 123 of file module.cpp.
References unload().
Referenced by ~Module().
void Engines::NWN::Module::delayScript | ( | const Common::UString & | script, |
const Aurora::NWScript::ScriptState & | state, | ||
Aurora::NWScript::Object * | owner, | ||
Aurora::NWScript::Object * | triggerer, | ||
uint32 | delay | ||
) |
Definition at line 756 of file module.cpp.
References _delayedActions, EventMan, kActionScript, Engines::NWN::Module::Action::owner, Engines::NWN::Module::Action::script, Engines::NWN::Module::Action::state, Engines::NWN::Module::Action::timestamp, Engines::NWN::Module::Action::triggerer, and Engines::NWN::Module::Action::type.
Referenced by Engines::NWN::Functions::actionDoCommand(), Engines::NWN::Functions::assignCommand(), and Engines::NWN::Functions::delayCommand().
|
virtual |
Enter the loaded module, starting it.
Reimplemented from Engines::NWN::Object.
Definition at line 322 of file module.cpp.
References _console, _exit, _hasModule, _ifo, _ingameGUI, _newArea, _pc, _running, Common::StackException::add(), Common::UString::c_str(), CameraMan, Common::UString::empty(), Aurora::IFOFile::getEntryArea(), Aurora::IFOFile::getEntryDirection(), Aurora::IFOFile::getEntryPosition(), Aurora::IFOFile::getName(), Aurora::IFOFile::getStartMovie(), Aurora::LocString::getString(), GfxMan, Engines::NWN::kScriptEnter, Engines::NWN::kScriptModuleLoad, Engines::NWN::kScriptModuleStart, loadAreas(), loadHAKs(), loadTexturePack(), loadTLK(), Engines::playVideo(), Engines::Console::printf(), Common::rad2deg(), and Engines::NWN::ScriptContainer::runScript().
Referenced by replaceModule().
|
private |
Enter a new area.
Definition at line 397 of file module.cpp.
References _areas, _console, _currentArea, _exit, _ingameGUI, _newArea, _pc, Common::UString::c_str(), Common::UString::empty(), EventMan, Engines::NWN::Area::getName(), Engines::NWN::Area::getResRef(), Engines::NWN::Area::hide(), Engines::NWN::kScriptEnter, Engines::NWN::kScriptExit, Engines::Console::printf(), Engines::NWN::ScriptContainer::runScript(), Engines::NWN::Area::show(), and warning().
Referenced by processEventQueue().
void Engines::NWN::Module::exit | ( | ) |
Exit the currently running module.
Definition at line 440 of file module.cpp.
References _exit, and _ingameGUI.
Referenced by Engines::NWN::Console::cmdExitModule(), and Engines::NWN::Functions::endGame().
Area * Engines::NWN::Module::getCurrentArea | ( | ) |
Return the area the PC is currently in.
Definition at line 752 of file module.cpp.
References _currentArea.
|
static |
Definition at line 802 of file module.cpp.
References Common::UString::empty(), getDescriptionCampaign(), and getDescriptionExtra().
|
staticprivate |
Definition at line 787 of file module.cpp.
References ConfigMan, Aurora::ERFFile::getDescription(), Common::FilePath::getExtension(), and Aurora::LocString::getString().
Referenced by getDescription().
|
staticprivate |
Definition at line 772 of file module.cpp.
References ConfigMan, Aurora::ERFFile::getDescription(), Common::FilePath::getExtension(), and Aurora::LocString::getString().
Referenced by getDescription().
const Version & Engines::NWN::Module::getGameVersion | ( | ) | const |
Definition at line 119 of file module.cpp.
References _gameVersion.
Referenced by Engines::NWN::MainMenu::createOptions(), and Engines::NWN::IngameGUI::IngameGUI().
const Aurora::IFOFile & Engines::NWN::Module::getIFO | ( | ) | const |
Return the IFO of the currently loaded module.
Definition at line 748 of file module.cpp.
References _ifo.
Referenced by Engines::NWN::Console::cmdGotoArea(), Engines::NWN::Console::cmdListAreas(), and Engines::NWN::Console::updateAreas().
Creature * Engines::NWN::Module::getPC | ( | ) |
Return the currently playing PC.
Definition at line 298 of file module.cpp.
References _pc.
Referenced by Engines::NWN::Functions::beginConversation(), Engines::NWN::Area::click(), Engines::NWN::Functions::getFirstPC(), Engines::NWN::Functions::getTag(), and Engines::NWN::Functions::jumpTo().
|
private |
Definition at line 516 of file module.cpp.
References _delayedActions, EventMan, kActionScript, and Engines::NWN::ScriptContainer::runScript().
Referenced by processEventQueue(), and unloadModule().
|
private |
Definition at line 474 of file module.cpp.
References _console, _currentArea, _eventQueue, _ingameGUI, Engines::NWN::Area::addEvent(), CameraMan, FreeRoamCam, Engines::Console::isVisible(), Events::kEventKeyDown, Engines::Console::processEvent(), Engines::NWN::Area::processEventQueue(), Engines::Console::show(), and showMenu().
Referenced by processEventQueue().
bool Engines::NWN::Module::isLoaded | ( | ) | const |
Is a module currently loaded and ready to run?
Definition at line 446 of file module.cpp.
References _hasModule, and _pc.
bool Engines::NWN::Module::isRunning | ( | ) | const |
Is a module currently running?
Definition at line 450 of file module.cpp.
References _exit, _newArea, _running, Common::UString::empty(), and EventMan.
Referenced by load(), and processEventQueue().
|
virtual |
Leave the running module, quitting it.
Reimplemented from Engines::NWN::Object.
Definition at line 389 of file module.cpp.
References _exit, _ingameGUI, and _running.
void Engines::NWN::Module::load | ( | const Common::UString & | module | ) |
Load a module.
Definition at line 127 of file module.cpp.
References _ingameGUI, changeModule(), isRunning(), and loadModule().
Referenced by Engines::NWN::Console::cmdLoadCampaign(), Engines::NWN::Console::cmdLoadModule(), Engines::NWN::NewXP2Menu::loadModule(), Engines::NWN::NewXP1Menu::loadModule(), Engines::NWN::NewMenu::loadModule(), Engines::NWN::NewModuleMenu::loadModule(), Engines::NWN::NewPremiumMenu::loadModule(), and Engines::NWN::Functions::startNewModule().
|
private |
Load the areas.
Definition at line 640 of file module.cpp.
References _areas, _ifo, Common::StackException::add(), Aurora::IFOFile::getAreas(), and status().
Referenced by enter().
|
private |
Load the HAKs required by the module.
Definition at line 592 of file module.cpp.
References _ifo, _resHAKs, Aurora::IFOFile::getHAKs(), and Engines::indexMandatoryArchive().
Referenced by enter().
|
private |
Load the actual module.
Definition at line 162 of file module.cpp.
References _hasModule, _ifo, Engines::NWN::Object::_name, _newModule, _resModule, Aurora::NWScript::Object::_tag, Common::StackException::add(), Common::UString::c_str(), checkHAKs(), checkXPs(), Common::UString::clear(), Common::UString::empty(), Aurora::IFOFile::getGFF(), Aurora::IFOFile::getName(), Aurora::LocString::getString(), Aurora::IFOFile::getTag(), Engines::indexMandatoryArchive(), Aurora::IFOFile::isSave(), Aurora::IFOFile::load(), preparePremiumModule(), Engines::NWN::ScriptContainer::readScripts(), and unload().
Referenced by load(), and replaceModule().
|
private |
Load the texture pack.
Definition at line 610 of file module.cpp.
References _currentTexturePack, _resTP, ConfigMan, Engines::indexMandatoryArchive(), Engines::indexOptionalArchive(), status(), TextureMan, Engines::NWN::texturePacks, and unloadTexturePack().
Referenced by enter(), and showMenu().
|
private |
Load the TLK used by the module.
Definition at line 581 of file module.cpp.
References _ifo, _resTLK, Common::UString::empty(), Aurora::IFOFile::getTLK(), and TalkMan.
Referenced by enter().
void Engines::NWN::Module::movedPC | ( | ) |
Notify the module that the PC was moved.
Definition at line 729 of file module.cpp.
References _ingameGUI, _newArea, _pc, CameraMan, and Common::UString::clear().
Referenced by Engines::NWN::Functions::jumpTo(), and movePC().
void Engines::NWN::Module::movePC | ( | const Common::UString & | area | ) |
Move the player character to this area.
Definition at line 689 of file module.cpp.
References _pc.
Referenced by Engines::NWN::Door::click(), Engines::NWN::Console::cmdGotoArea(), and movePC().
void Engines::NWN::Module::movePC | ( | float | x, |
float | y, | ||
float | z | ||
) |
Move the player character to this position within the current area.
Definition at line 699 of file module.cpp.
References _currentArea, _pc, and movePC().
void Engines::NWN::Module::movePC | ( | const Common::UString & | area, |
float | x, | ||
float | y, | ||
float | z | ||
) |
Move the player character to this position within this area.
Definition at line 706 of file module.cpp.
References _areas, _pc, and movePC().
void Engines::NWN::Module::movePC | ( | Area * | area, |
float | x, | ||
float | y, | ||
float | z | ||
) |
Move the player character to this position within this area.
Definition at line 719 of file module.cpp.
References _pc, and movedPC().
|
private |
Check if this is premium module, and if so, prepare its loading.
Definition at line 140 of file module.cpp.
References _resHAKs, Common::FilePath::changeExtension(), Common::hashMD5(), Engines::indexMandatoryArchive(), Engines::NWN::Game::isPremiumModule(), and ResMan.
Referenced by loadModule().
void Engines::NWN::Module::processEventQueue | ( | ) |
Process the current event queue.
Definition at line 458 of file module.cpp.
References _ingameGUI, _pc, enterArea(), handleActions(), handleEvents(), isRunning(), and replaceModule().
|
private |
Definition at line 247 of file module.cpp.
References ARRAYSIZE, kGenderTokens, GenderToken::token, and TokenMan.
Referenced by unloadPC().
|
private |
Actually replace the currently running module.
Definition at line 306 of file module.cpp.
References _console, _exit, _newModule, Common::UString::empty(), enter(), Engines::Console::hide(), loadModule(), and unload().
Referenced by processEventQueue().
|
private |
Definition at line 217 of file module.cpp.
References _pc, ARRAYSIZE, GenderToken::female, kGenderTokens, GenderToken::male, TalkMan, and TokenMan.
Referenced by usePC().
void Engines::NWN::Module::showMenu | ( | ) |
Show the ingame main menu.
Definition at line 671 of file module.cpp.
References _currentArea, _exit, _ingameGUI, loadTexturePack(), and Engines::NWN::Area::removeFocus().
Referenced by Engines::NWN::PartyLeader::callbackActive(), and handleEvents().
bool Engines::NWN::Module::startConversation | ( | const Common::UString & | conv, |
Creature & | pc, | ||
NWN::Object & | obj, | ||
bool | playHello = true |
||
) |
Start a conversation.
conv | The dialog ResRef to use. |
pc | The PC that initiated the conversation. |
obj | The object the PC is talking with. |
playHello | Should the obj play its "Hello" sound? |
Definition at line 683 of file module.cpp.
References _ingameGUI.
Referenced by Engines::NWN::Functions::actionStartConversation(), and Engines::NWN::Functions::beginConversation().
|
private |
Unload the whole shebang.
completeUnload | Also unload the PC and texture packs. true: completely quit the module false: the PC can be transferred to a new module. |
Definition at line 533 of file module.cpp.
References GfxMan, unloadAreas(), unloadHAKs(), unloadModule(), unloadPC(), unloadTexturePack(), and unloadTLK().
Referenced by clear(), loadModule(), and replaceModule().
|
private |
Unload the areas.
Definition at line 662 of file module.cpp.
References _areas, _currentArea, _ingameGUI, _newArea, Common::PtrMap< Key, T, Compare, Deallocator >::clear(), and Common::UString::clear().
Referenced by unload().
|
private |
Unload the HAKs required by the module.
Definition at line 599 of file module.cpp.
References _resHAKs, and Engines::deindexResources().
Referenced by unload().
|
private |
Unload the module.
Definition at line 548 of file module.cpp.
References _delayedActions, _eventQueue, _hasModule, _ifo, _newModule, _pc, _resModule, Aurora::NWScript::Object::_tag, Common::UString::clear(), Engines::NWN::ScriptContainer::clearScripts(), Aurora::NWScript::VariableContainer::clearVariables(), Engines::deindexResources(), handleActions(), Engines::NWN::kScriptExit, Engines::NWN::ScriptContainer::runScript(), TwoDAReg, and Aurora::IFOFile::unload().
Referenced by unload().
|
private |
Unload the PC.
Definition at line 570 of file module.cpp.
References _pc, Engines::NWN::ObjectContainer::removeObject(), and removePCTokens().
Referenced by unload(), and usePC().
|
private |
Unload the texture pack.
Definition at line 633 of file module.cpp.
References _currentTexturePack, _resTP, and Engines::deindexResources().
Referenced by loadTexturePack(), and unload().
|
private |
Unload the TLK used by the module.
Definition at line 588 of file module.cpp.
References _resTLK, and TalkMan.
Referenced by unload().
void Engines::NWN::Module::usePC | ( | const Common::UString & | bic, |
bool | local | ||
) |
Use this character as the player character.
Definition at line 268 of file module.cpp.
References _pc, Common::StackException::add(), Engines::NWN::ObjectContainer::addObject(), Common::UString::c_str(), Common::UString::empty(), Aurora::kLanguageGenderFemale, Aurora::kLanguageGenderMale, LangMan, setPCTokens(), and unloadPC().
Referenced by Engines::NWN::CharPremadeMenu::playCharacter(), and Engines::NWN::CharGenChoices::useCharacter().
void Engines::NWN::Module::usePC | ( | Creature * | creature | ) |
Definition at line 287 of file module.cpp.
References _pc, Engines::NWN::ObjectContainer::addObject(), Aurora::kLanguageGenderFemale, Aurora::kLanguageGenderMale, LangMan, setPCTokens(), and unloadPC().
|
private |
The areas in the current module.
Definition at line 204 of file module.h.
Referenced by enterArea(), loadAreas(), movePC(), and unloadAreas().
|
private |
Definition at line 177 of file module.h.
Referenced by enter(), enterArea(), handleEvents(), Module(), and replaceModule().
|
private |
The current area.
Definition at line 206 of file module.h.
Referenced by enterArea(), getCurrentArea(), handleEvents(), movePC(), showMenu(), and unloadAreas().
|
private |
Definition at line 199 of file module.h.
Referenced by loadTexturePack(), and unloadTexturePack().
|
private |
Definition at line 211 of file module.h.
Referenced by delayScript(), handleActions(), and unloadModule().
|
private |
Definition at line 210 of file module.h.
Referenced by addEvent(), handleEvents(), and unloadModule().
|
private |
Should we exit the module?
Definition at line 202 of file module.h.
Referenced by enter(), enterArea(), exit(), isRunning(), leave(), replaceModule(), and showMenu().
|
private |
Definition at line 179 of file module.h.
Referenced by getGameVersion().
|
private |
Do we have a module?
Definition at line 181 of file module.h.
Referenced by enter(), isLoaded(), loadModule(), and unloadModule().
|
private |
The module's IFO.
Definition at line 194 of file module.h.
Referenced by checkHAKs(), checkXPs(), enter(), getIFO(), loadAreas(), loadHAKs(), loadModule(), loadTLK(), and unloadModule().
|
private |
The ingame GUI elements.
Definition at line 184 of file module.h.
Referenced by enter(), enterArea(), exit(), handleEvents(), leave(), load(), Module(), movedPC(), processEventQueue(), showMenu(), startConversation(), and unloadAreas().
|
private |
The new area to enter.
Definition at line 205 of file module.h.
Referenced by enter(), enterArea(), isRunning(), movedPC(), and unloadAreas().
|
private |
The module we should change to.
Definition at line 208 of file module.h.
Referenced by changeModule(), loadModule(), replaceModule(), and unloadModule().
|
private |
The player character we use.
Definition at line 196 of file module.h.
Referenced by enter(), enterArea(), getPC(), isLoaded(), movedPC(), movePC(), processEventQueue(), setPCTokens(), unloadModule(), unloadPC(), and usePC().
|
private |
Resources added by the HAKs of the module.
Definition at line 192 of file module.h.
Referenced by loadHAKs(), preparePremiumModule(), and unloadHAKs().
|
private |
Resources added by the module.
Definition at line 187 of file module.h.
Referenced by loadModule(), and unloadModule().
|
private |
Resources added for the custom TLK.
Definition at line 189 of file module.h.
Referenced by loadTLK(), and unloadTLK().
|
private |
Definition at line 200 of file module.h.
Referenced by loadTexturePack(), and unloadTexturePack().
|
private |
Are we currently running a module?
Definition at line 182 of file module.h.
Referenced by enter(), isRunning(), and leave().