xoreos
0.0.5
|
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. More...
#include <area.h>
Classes | |
struct | CameraStyle |
Public Member Functions | |
Area (Module &module, const Common::UString &resRef) | |
~Area () | |
const Common::UString & | getResRef () |
Return the area's resref (resource ID). More... | |
int | getNorthAxis () |
Get the north axis id. More... | |
void | getMapPoint1 (float &x, float &y) |
Get the first map point. More... | |
void | getMapPoint2 (float &x, float &y) |
Get the second map point. More... | |
void | getWorldPoint1 (float &x, float &y) |
Get the first world point. More... | |
void | getWorldPoint2 (float &x, float &y) |
Get the second world point. More... | |
void | show () |
Show the object's model(s). More... | |
void | hide () |
Hide the object's model(s). More... | |
uint32 | getMusicDayTrack () const |
Return the music track ID playing by day. More... | |
uint32 | getMusicNightTrack () const |
Return the music track ID playing by night. More... | |
uint32 | getMusicBattleTrack () const |
Return the music track ID playing in battle. More... | |
void | setMusicDayTrack (uint32 track) |
Set the music track ID playing by day. More... | |
void | setMusicNightTrack (uint32 track) |
Set the music track ID playing by night. More... | |
void | setMusicBattleTrack (uint32 track) |
Set the music track ID playing in battle. More... | |
void | stopSound () |
Stop all sounds. More... | |
void | stopAmbientMusic () |
Stop the ambient music. More... | |
void | stopAmbientSound () |
Stop the ambient sound. More... | |
void | playAmbientMusic (Common::UString music="") |
Play the specified music (or the area's default) as ambient music. More... | |
void | playAmbientSound (Common::UString sound="") |
Play the specified sound (or the area's default) as ambient sound. More... | |
void | addEvent (const Events::Event &event) |
Add a single event for consideration into the area event queue. More... | |
void | processEventQueue () |
Process the current event queue. More... | |
void | removeFocus () |
Forcibly remove the focus from the currently highlighted object. More... | |
float | evaluateElevation (Object *object, float x, float y, bool doHighlight=true) |
bool | testCollision (const glm::vec3 &orig, const glm::vec3 &dest) const |
void | toggleWalkmesh () |
void | toggleTriggers () |
.— Triggers More... | |
void | evaluateTriggers (float x, float y) |
void | showAllRooms () |
'— More... | |
void | notifyObjectMoved (Object &o) |
void | notifyPCMoved () |
void | getCameraStyle (float &distance, float &pitch, float &height) const |
const std::vector< Common::UString > & | getRoomsVisibleFrom (const Common::UString &room) const |
KotOR::Object * | getActiveObject () |
KotOR::Object * | getObjectByTag (const Common::UString &tag) |
void | processCreaturesActions (float dt) |
void | removeObject (KotOR::Object *object) |
Public Member Functions inherited from Engines::KotOR::Object | |
Object (ObjectType type=kObjectTypeInvalid) | |
virtual | ~Object () |
ObjectType | getType () const |
Return the exact type of the object. More... | |
virtual void | hideSoft () |
Hide the object's model(s) if applicable. More... | |
virtual bool | isVisible () const |
Is the object's model(s) visible? 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... | |
void | setMaxHitPoints (int maxHP) |
Set the maximum hit points for the objects. More... | |
int | getMaxHitPoints () |
Get the maximum hit points for the objects. More... | |
void | setCurrentHitPoints (int hitpoints) |
Set the current hitpoints. More... | |
int | getCurrentHitPoints () |
Return the objects current hitpoints. More... | |
void | setMinOneHitPoints (bool enabled) |
Set if the object has a minimum of one hp. More... | |
bool | getMinOneHitPoints () const |
Get if the object has a minimum of one hp. 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... | |
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... | |
void | makeLookAt (float x, float y) |
void | makeLookAt (Object *target) |
Room * | getRoom () |
Get a room the object is in. More... | |
void | setRoom (Room *room) |
Set a room the object is in. More... | |
virtual void | enter () |
The cursor entered the object. More... | |
virtual void | leave () |
The cursor left the object. More... | |
virtual void | highlight (bool enabled) |
(Un)Highlight the object. More... | |
virtual bool | click (Object *triggerer=0) |
The object was clicked. 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 &anim, bool restart=true, float length=0.0f, float speed=1.0f) |
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::KotOR::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 Events::Notifyable | |
Notifyable () | |
virtual | ~Notifyable () |
Protected Member Functions | |
void | notifyCameraMoved () |
Protected Member Functions inherited from Engines::KotOR::ScriptContainer | |
void | clearScripts () |
void | readScripts (const Aurora::GFF3Struct &gff, bool clear=true) |
void | readScripts (const ScriptContainer &container) |
Private Types | |
typedef Common::PtrList< Room > | RoomList |
typedef Common::PtrList< KotOR::Object > | ObjectList |
typedef std::map< uint32, KotOR::Object * > | ObjectMap |
Private Member Functions | |
void | clear () |
void | load () |
void | loadLYT () |
void | loadVIS () |
void | loadARE (const Aurora::GFF3Struct &are) |
void | loadGIT (const Aurora::GFF3Struct &git) |
void | loadCameraStyle (uint32 id) |
void | loadRooms () |
void | loadProperties (const Aurora::GFF3Struct &props) |
void | loadObject (KotOR::Object &object) |
void | loadWaypoints (const Aurora::GFF3List &list) |
void | loadPlaceables (const Aurora::GFF3List &list) |
void | loadDoors (const Aurora::GFF3List &list) |
void | loadCreatures (const Aurora::GFF3List &list) |
void | loadSounds (const Aurora::GFF3List &list) |
void | loadTriggers (const Aurora::GFF3List &list) |
void | unload () |
void | checkActive (int x=-1, int y=-1) |
void | setActive (KotOR::Object *object) |
KotOR::Object * | getObjectAt (int x, int y) |
void | highlightAll (bool enabled) |
void | click (int x, int y) |
Room * | getRoomAt (float x, float y) const |
Private Attributes | |
Module * | _module |
The module this area is in. More... | |
Common::UString | _resRef |
The area's resref (resource ID). More... | |
Common::UString | _displayName |
The area's localized display name. More... | |
Common::UString | _ambientDay |
Ambient sound that plays by day. More... | |
Common::UString | _ambientNight |
Ambient sound that plays by night. More... | |
uint32 | _musicDayTrack |
Music track ID that plays by day. More... | |
uint32 | _musicNightTrack |
Music track ID that plays by night. More... | |
uint32 | _musicBattleTrack |
Music track ID that plays in battle. More... | |
Common::UString | _musicDay |
Music that plays by day. More... | |
Common::UString | _musicNight |
Music that plays by night. More... | |
Common::UString | _musicBattle |
Music that plays in battle. More... | |
std::vector< Common::UString > | _musicBattleStinger |
Battle music stingers. More... | |
float | _ambientDayVol |
Day ambient sound volume. More... | |
float | _ambientNightVol |
Night ambient sound volume. More... | |
bool | _visible |
Is the area currently visible? More... | |
float | _worldPt1X |
float | _worldPt1Y |
float | _worldPt2X |
float | _worldPt2Y |
float | _mapPt1X |
float | _mapPt1Y |
float | _mapPt2X |
float | _mapPt2Y |
int | _northAxis |
Sound::ChannelHandle | _ambientSound |
Sound handle of the currently playing sound. More... | |
Sound::ChannelHandle | _ambientMusic |
Sound handle of the currently playing music. More... | |
Aurora::LYTFile | _lyt |
The area's layout description. More... | |
Aurora::VISFile | _vis |
The area's inter-room visibility description. More... | |
RoomList | _rooms |
All rooms in the area. More... | |
ObjectList | _objects |
List of all objects in the area. More... | |
ObjectMap | _objectMap |
Map of all non-static objects in the area. More... | |
std::vector< Creature * > | _creatures |
KotOR::Object * | _activeObject |
The currently active (highlighted) object. More... | |
bool | _highlightAll |
Are we currently highlighting all objects? More... | |
std::list< Events::Event > | _eventQueue |
The event queue. More... | |
Common::Mutex | _mutex |
Mutex securing access to the area. More... | |
std::vector< Trigger * > | _triggers |
.— Triggers More... | |
bool | _triggersVisible |
Trigger * | _activeTrigger |
CameraStyle | _cameraStyle |
'— More... | |
bool | _walkmeshInvisible |
std::list< Situated * > | _situatedObjects |
Friends | |
class | Console |
class | ActionExecutor |
Additional Inherited Members | |
Static Public Member Functions inherited from Engines::KotOR::ScriptContainer | |
static bool | runScript (const Common::UString &script, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference()) |
static bool | runScript (const Common::UString &script, const Aurora::NWScript::ScriptState &state, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference()) |
Protected Attributes inherited from Engines::KotOR::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... | |
bool | _static |
Is the object static? More... | |
bool | _usable |
Is the object usable? More... | |
int | _currentHitPoints |
The current hitpoints of the object. More... | |
int | _maxHitPoints |
The maximum hitpoints of the object. More... | |
bool | _minOneHitPoint |
If the object should have at least one hitpoint. More... | |
std::list< uint32 > | _ids |
The object's model IDs. 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... | |
Room * | _room |
Room the object is in. More... | |
Protected Attributes inherited from Aurora::NWScript::Object | |
uint32 | _id |
Common::UString | _tag |
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.
Note: the coordinate system of the in-world graphics is oriented as viewed from the top down. The negative Z axis goes down into the ground, while the positive Y axis points due north and the positive X axis points due east.
|
private |
|
private |
|
private |
Engines::KotOR::Area::Area | ( | Module & | module, |
const Common::UString & | resRef | ||
) |
Engines::KotOR::Area::~Area | ( | ) |
Definition at line 88 of file area.cpp.
References _module, clear(), hide(), removeFocus(), and Engines::KotOR::ObjectContainer::removeObject().
void Engines::KotOR::Area::addEvent | ( | const Events::Event & | event | ) |
Add a single event for consideration into the area event queue.
Definition at line 464 of file area.cpp.
References _eventQueue.
|
private |
Definition at line 520 of file area.cpp.
References _highlightAll, _mutex, CursorMan, getObjectAt(), and setActive().
Referenced by notifyCameraMoved(), and processEventQueue().
|
private |
Definition at line 111 of file area.cpp.
References _activeTrigger, _creatures, _module, _objects, _rooms, _situatedObjects, _triggers, Common::PtrList< T, Deallocator >::clear(), and Engines::KotOR::ObjectContainer::removeObject().
Referenced by Area(), and ~Area().
|
private |
Definition at line 532 of file area.cpp.
References _module, _mutex, Engines::KotOR::Object::click(), Engines::KotOR::Module::clickObject(), getObjectAt(), and Engines::KotOR::Module::getPC().
Referenced by processEventQueue().
float Engines::KotOR::Area::evaluateElevation | ( | Object * | object, |
float | x, | ||
float | y, | ||
bool | doHighlight = true |
||
) |
Definition at line 565 of file area.cpp.
References _rooms, Engines::KotOR::Room::disableWalkmeshHighlight(), Engines::KotOR::Room::evaluateElevation(), and FLT_MIN.
Referenced by Engines::KotOR::ActionExecutor::moveTo().
void Engines::KotOR::Area::evaluateTriggers | ( | float | x, |
float | y | ||
) |
Definition at line 619 of file area.cpp.
References _activeTrigger, _module, _triggers, Engines::Trigger::contains(), Engines::KotOR::Module::getPC(), Engines::KotOR::kScriptEnter, Engines::KotOR::kScriptExit, and Engines::KotOR::ScriptContainer::runScript().
KotOR::Object * Engines::KotOR::Area::getActiveObject | ( | ) |
Definition at line 724 of file area.cpp.
References _activeObject.
void Engines::KotOR::Area::getCameraStyle | ( | float & | distance, |
float & | pitch, | ||
float & | height | ||
) | const |
Definition at line 714 of file area.cpp.
References _cameraStyle, Engines::KotOR::Area::CameraStyle::distance, Engines::KotOR::Area::CameraStyle::height, and Engines::KotOR::Area::CameraStyle::pitch.
void Engines::KotOR::Area::getMapPoint1 | ( | float & | x, |
float & | y | ||
) |
void Engines::KotOR::Area::getMapPoint2 | ( | float & | x, |
float & | y | ||
) |
uint32 Engines::KotOR::Area::getMusicBattleTrack | ( | ) | const |
Return the music track ID playing in battle.
Definition at line 131 of file area.cpp.
References _musicBattleTrack.
uint32 Engines::KotOR::Area::getMusicDayTrack | ( | ) | const |
Return the music track ID playing by day.
Definition at line 123 of file area.cpp.
References _musicDayTrack.
Referenced by Engines::KotOR::Functions::musicBackgroundGetDayTrack().
uint32 Engines::KotOR::Area::getMusicNightTrack | ( | ) | const |
Return the music track ID playing by night.
Definition at line 127 of file area.cpp.
References _musicNightTrack.
Referenced by Engines::KotOR::Functions::musicBackgroundGetNightTrack().
int Engines::KotOR::Area::getNorthAxis | ( | ) |
|
private |
Definition at line 495 of file area.cpp.
References _objectMap, Graphics::Renderable::getID(), and GfxMan.
Referenced by checkActive(), and click().
KotOR::Object * Engines::KotOR::Area::getObjectByTag | ( | const Common::UString & | tag | ) |
Definition at line 728 of file area.cpp.
References _objects.
Referenced by Engines::KotOR::DialogGUI::makeLookAtPC(), Engines::KotOR::DialogGUI::playDefaultAnimations(), and Engines::KotOR::DialogGUI::playTalkAnimations().
const Common::UString& Engines::KotOR::Area::getResRef | ( | ) |
Return the area's resref (resource ID).
|
private |
Definition at line 771 of file area.cpp.
References _rooms, and FLT_MIN.
Referenced by notifyObjectMoved().
const std::vector< Common::UString > & Engines::KotOR::Area::getRoomsVisibleFrom | ( | const Common::UString & | room | ) | const |
Definition at line 720 of file area.cpp.
References _vis, and Aurora::VISFile::getVisibilityArray().
Referenced by Engines::KotOR::Console::cmdListRoomsVisibleFrom().
void Engines::KotOR::Area::getWorldPoint1 | ( | float & | x, |
float & | y | ||
) |
Get the first world point.
Definition at line 220 of file area.cpp.
References _worldPt1X, and _worldPt1Y.
void Engines::KotOR::Area::getWorldPoint2 | ( | float & | x, |
float & | y | ||
) |
Get the second world point.
Definition at line 225 of file area.cpp.
References _worldPt2X, and _worldPt2Y.
|
virtual |
Hide the object's model(s).
Reimplemented from Engines::KotOR::Object.
Definition at line 253 of file area.cpp.
References _objects, _rooms, _visible, GfxMan, removeFocus(), and stopSound().
Referenced by ~Area().
|
private |
Definition at line 543 of file area.cpp.
References _highlightAll, and _objectMap.
Referenced by processEventQueue().
|
private |
Definition at line 98 of file area.cpp.
References _resRef, Aurora::GFF3File::getTopLevel(), Aurora::kFileTypeARE, Aurora::kFileTypeGIT, loadARE(), loadGIT(), loadLYT(), loadRooms(), loadVIS(), and MKTAG.
Referenced by Area().
|
private |
Definition at line 304 of file area.cpp.
References _mapPt1X, _mapPt1Y, _mapPt2X, _mapPt2Y, Engines::KotOR::Object::_name, _northAxis, Aurora::NWScript::Object::_tag, _worldPt1X, _worldPt1Y, _worldPt2X, _worldPt2Y, Aurora::GFF3Struct::getDouble(), Aurora::GFF3Struct::getSint(), Aurora::GFF3Struct::getString(), Aurora::GFF3Struct::getStruct(), Aurora::GFF3Struct::getUint(), loadCameraStyle(), and Engines::KotOR::ScriptContainer::readScripts().
Referenced by load().
|
private |
Definition at line 330 of file area.cpp.
References _cameraStyle, Engines::KotOR::Area::CameraStyle::distance, Aurora::TwoDARow::getFloat(), Aurora::TwoDAFile::getRow(), Engines::KotOR::Area::CameraStyle::height, Engines::KotOR::Area::CameraStyle::pitch, and TwoDAReg.
Referenced by loadARE().
|
private |
Definition at line 438 of file area.cpp.
References _creatures, and loadObject().
Referenced by loadGIT().
|
private |
Definition at line 429 of file area.cpp.
References _module, _situatedObjects, and loadObject().
Referenced by loadGIT().
|
private |
Definition at line 338 of file area.cpp.
References Aurora::GFF3Struct::getList(), Aurora::GFF3Struct::getStruct(), Aurora::GFF3Struct::hasField(), loadCreatures(), loadDoors(), loadPlaceables(), loadProperties(), loadSounds(), loadTriggers(), and loadWaypoints().
Referenced by load().
|
private |
Definition at line 276 of file area.cpp.
References _lyt, _resRef, Common::StackException::add(), Common::UString::c_str(), Aurora::kFileTypeLYT, Aurora::LYTFile::load(), and ResMan.
Referenced by load().
|
private |
Definition at line 398 of file area.cpp.
References _module, _objectMap, _objects, Engines::KotOR::ObjectContainer::addObject(), Engines::KotOR::Object::isStatic(), and notifyObjectMoved().
Referenced by loadCreatures(), loadDoors(), loadPlaceables(), loadSounds(), loadTriggers(), and loadWaypoints().
|
private |
Definition at line 420 of file area.cpp.
References _situatedObjects, and loadObject().
Referenced by loadGIT().
|
private |
Definition at line 361 of file area.cpp.
References _ambientDay, _ambientDayVol, _ambientNight, _ambientNightVol, Aurora::TwoDAFile::getRow(), Aurora::TwoDARow::getString(), Aurora::GFF3Struct::getUint(), Aurora::kStrRefInvalid, setMusicBattleTrack(), setMusicDayTrack(), setMusicNightTrack(), and TwoDAReg.
Referenced by loadGIT().
|
private |
|
private |
Definition at line 456 of file area.cpp.
References loadObject().
Referenced by loadGIT().
|
private |
Definition at line 447 of file area.cpp.
References _triggers, and loadObject().
Referenced by loadGIT().
|
private |
Definition at line 290 of file area.cpp.
References _resRef, _vis, Common::StackException::add(), Common::UString::c_str(), Aurora::kFileTypeVIS, Aurora::VISFile::load(), and ResMan.
Referenced by load().
|
private |
Definition at line 412 of file area.cpp.
References loadObject().
Referenced by loadGIT().
|
protectedvirtual |
Reimplemented from Events::Notifyable.
Definition at line 561 of file area.cpp.
References checkActive().
void Engines::KotOR::Area::notifyObjectMoved | ( | Object & | o | ) |
Definition at line 659 of file area.cpp.
References Engines::KotOR::Object::getPosition(), getRoomAt(), and Engines::KotOR::Object::setRoom().
Referenced by loadObject(), and notifyPCMoved().
void Engines::KotOR::Area::notifyPCMoved | ( | ) |
Definition at line 665 of file area.cpp.
References _module, _objects, _rooms, _vis, Engines::KotOR::Module::getPC(), Engines::KotOR::Room::getResRef(), Engines::KotOR::Object::getRoom(), Aurora::VISFile::getVisibilityArray(), GfxMan, Engines::KotOR::Room::isVisible(), and notifyObjectMoved().
void Engines::KotOR::Area::playAmbientMusic | ( | Common::UString | music = "" | ) |
Play the specified music (or the area's default) as ambient music.
Definition at line 180 of file area.cpp.
References _ambientMusic, _musicDay, Common::UString::empty(), Sound::kSoundTypeMusic, Engines::playSound(), and stopAmbientMusic().
Referenced by Engines::KotOR::Functions::musicBackgroundPlay(), Engines::KotOR::Game::playMusic(), and show().
void Engines::KotOR::Area::playAmbientSound | ( | Common::UString | sound = "" | ) |
Play the specified sound (or the area's default) as ambient sound.
Definition at line 193 of file area.cpp.
References _ambientDay, _ambientDayVol, _ambientSound, Common::UString::empty(), Sound::kSoundTypeSFX, Engines::playSound(), and stopAmbientSound().
Referenced by show().
void Engines::KotOR::Area::processCreaturesActions | ( | float | dt | ) |
Definition at line 737 of file area.cpp.
References _creatures, and Engines::KotOR::ActionExecutor::executeActions().
void Engines::KotOR::Area::processEventQueue | ( | ) |
Process the current event queue.
Definition at line 468 of file area.cpp.
References _eventQueue, checkActive(), click(), highlightAll(), Events::kEventKeyDown, Events::kEventKeyUp, Events::kEventMouseMove, and Events::kEventMouseUp.
void Engines::KotOR::Area::removeFocus | ( | ) |
Forcibly remove the focus from the currently highlighted object.
Definition at line 554 of file area.cpp.
References _activeObject, and Engines::KotOR::Object::leave().
Referenced by hide(), and ~Area().
void Engines::KotOR::Area::removeObject | ( | KotOR::Object * | object | ) |
Definition at line 744 of file area.cpp.
References _activeTrigger, _creatures, _module, _objectMap, _objects, _situatedObjects, _triggers, Engines::KotOR::Object::getIDs(), Engines::KotOR::Object::isStatic(), Common::PtrList< T, Deallocator >::remove(), and Engines::KotOR::ObjectContainer::removeObject().
Referenced by Engines::KotOR::Functions::destroyObject().
|
private |
Definition at line 507 of file area.cpp.
References _activeObject, Engines::KotOR::Object::enter(), and Engines::KotOR::Object::leave().
Referenced by checkActive().
void Engines::KotOR::Area::setMusicBattleTrack | ( | uint32 | track | ) |
Set the music track ID playing in battle.
Definition at line 145 of file area.cpp.
References _musicBattle, _musicBattleStinger, _musicBattleTrack, Aurora::TwoDAFile::getRow(), Aurora::TwoDARow::getString(), Aurora::kStrRefInvalid, and TwoDAReg.
Referenced by loadProperties().
void Engines::KotOR::Area::setMusicDayTrack | ( | uint32 | track | ) |
Set the music track ID playing by day.
Definition at line 135 of file area.cpp.
References _musicDay, _musicDayTrack, and TwoDAReg.
Referenced by loadProperties(), and Engines::KotOR::Functions::musicBackgroundChangeDay().
void Engines::KotOR::Area::setMusicNightTrack | ( | uint32 | track | ) |
Set the music track ID playing by night.
Definition at line 140 of file area.cpp.
References _musicNight, _musicNightTrack, and TwoDAReg.
Referenced by loadProperties(), and Engines::KotOR::Functions::musicBackgroundChangeNight().
|
virtual |
Show the object's model(s).
Reimplemented from Engines::KotOR::Object.
Definition at line 230 of file area.cpp.
References _objects, _rooms, _visible, GfxMan, playAmbientMusic(), and playAmbientSound().
void Engines::KotOR::Area::showAllRooms | ( | ) |
void Engines::KotOR::Area::stopAmbientMusic | ( | ) |
Stop the ambient music.
Definition at line 172 of file area.cpp.
References _ambientMusic, and SoundMan.
Referenced by Engines::KotOR::Functions::musicBackgroundStop(), playAmbientMusic(), Engines::KotOR::Game::stopMusic(), and stopSound().
void Engines::KotOR::Area::stopAmbientSound | ( | ) |
Stop the ambient sound.
Definition at line 176 of file area.cpp.
References _ambientSound, and SoundMan.
Referenced by playAmbientSound(), and stopSound().
void Engines::KotOR::Area::stopSound | ( | ) |
Stop all sounds.
Definition at line 167 of file area.cpp.
References stopAmbientMusic(), and stopAmbientSound().
Referenced by hide().
bool Engines::KotOR::Area::testCollision | ( | const glm::vec3 & | orig, |
const glm::vec3 & | dest | ||
) | const |
Definition at line 587 of file area.cpp.
References _situatedObjects.
Referenced by Engines::KotOR::ActionExecutor::moveTo().
void Engines::KotOR::Area::toggleTriggers | ( | ) |
void Engines::KotOR::Area::toggleWalkmesh | ( | ) |
Definition at line 596 of file area.cpp.
References _rooms, _situatedObjects, and _walkmeshInvisible.
|
private |
|
friend |
|
private |
The currently active (highlighted) object.
Definition at line 208 of file area.h.
Referenced by getActiveObject(), removeFocus(), and setActive().
|
private |
Definition at line 219 of file area.h.
Referenced by clear(), evaluateTriggers(), and removeObject().
|
private |
Ambient sound that plays by day.
Definition at line 171 of file area.h.
Referenced by loadProperties(), and playAmbientSound().
|
private |
Day ambient sound volume.
Definition at line 185 of file area.h.
Referenced by loadProperties(), and playAmbientSound().
|
private |
Sound handle of the currently playing music.
Definition at line 195 of file area.h.
Referenced by playAmbientMusic(), and stopAmbientMusic().
|
private |
Ambient sound that plays by night.
Definition at line 172 of file area.h.
Referenced by loadProperties().
|
private |
|
private |
Sound handle of the currently playing sound.
Definition at line 194 of file area.h.
Referenced by playAmbientSound(), and stopAmbientSound().
|
private |
|
private |
Definition at line 205 of file area.h.
Referenced by clear(), loadCreatures(), processCreaturesActions(), and removeObject().
|
private |
|
private |
The event queue.
Definition at line 212 of file area.h.
Referenced by addEvent(), and processEventQueue().
|
private |
Are we currently highlighting all objects?
Definition at line 210 of file area.h.
Referenced by checkActive(), and highlightAll().
|
private |
The area's layout description.
Definition at line 197 of file area.h.
Referenced by loadLYT(), and loadRooms().
|
private |
Definition at line 191 of file area.h.
Referenced by getMapPoint1(), and loadARE().
|
private |
Definition at line 191 of file area.h.
Referenced by getMapPoint1(), and loadARE().
|
private |
Definition at line 191 of file area.h.
Referenced by getMapPoint2(), and loadARE().
|
private |
Definition at line 191 of file area.h.
Referenced by getMapPoint2(), and loadARE().
|
private |
The module this area is in.
Definition at line 166 of file area.h.
Referenced by Area(), clear(), click(), evaluateTriggers(), Engines::KotOR::ActionExecutor::executeFollowLeader(), loadDoors(), loadObject(), notifyPCMoved(), removeObject(), and ~Area().
|
private |
Music that plays in battle.
Definition at line 180 of file area.h.
Referenced by setMusicBattleTrack().
|
private |
|
private |
Music track ID that plays in battle.
Definition at line 176 of file area.h.
Referenced by getMusicBattleTrack(), and setMusicBattleTrack().
|
private |
Music that plays by day.
Definition at line 178 of file area.h.
Referenced by playAmbientMusic(), and setMusicDayTrack().
|
private |
Music track ID that plays by day.
Definition at line 174 of file area.h.
Referenced by getMusicDayTrack(), and setMusicDayTrack().
|
private |
Music that plays by night.
Definition at line 179 of file area.h.
Referenced by setMusicNightTrack().
|
private |
Music track ID that plays by night.
Definition at line 175 of file area.h.
Referenced by getMusicNightTrack(), and setMusicNightTrack().
|
private |
Mutex securing access to the area.
Definition at line 214 of file area.h.
Referenced by checkActive(), and click().
|
private |
Definition at line 192 of file area.h.
Referenced by getNorthAxis(), and loadARE().
|
private |
Map of all non-static objects in the area.
Definition at line 203 of file area.h.
Referenced by getObjectAt(), highlightAll(), loadObject(), and removeObject().
|
private |
List of all objects in the area.
Definition at line 202 of file area.h.
Referenced by clear(), getObjectByTag(), hide(), loadObject(), notifyPCMoved(), removeObject(), show(), and showAllRooms().
|
private |
|
private |
All rooms in the area.
Definition at line 200 of file area.h.
Referenced by clear(), evaluateElevation(), getRoomAt(), hide(), loadRooms(), notifyPCMoved(), show(), showAllRooms(), and toggleWalkmesh().
|
private |
Definition at line 224 of file area.h.
Referenced by clear(), loadDoors(), loadPlaceables(), removeObject(), testCollision(), and toggleWalkmesh().
|
private |
.— Triggers
Definition at line 217 of file area.h.
Referenced by clear(), evaluateTriggers(), loadTriggers(), removeObject(), and toggleTriggers().
|
private |
Definition at line 218 of file area.h.
Referenced by toggleTriggers().
|
private |
The area's inter-room visibility description.
Definition at line 198 of file area.h.
Referenced by getRoomsVisibleFrom(), loadVIS(), and notifyPCMoved().
|
private |
|
private |
Definition at line 223 of file area.h.
Referenced by toggleWalkmesh().
|
private |
Definition at line 190 of file area.h.
Referenced by getWorldPoint1(), and loadARE().
|
private |
Definition at line 190 of file area.h.
Referenced by getWorldPoint1(), and loadARE().
|
private |
Definition at line 190 of file area.h.
Referenced by getWorldPoint2(), and loadARE().
|
private |
Definition at line 190 of file area.h.
Referenced by getWorldPoint2(), and loadARE().