|
xoreos
0.0.5
|
#include <object.h>


Public Member Functions | |
| Object (ObjectType type=kObjectTypeInvalid) | |
| virtual | ~Object () |
| ObjectType | getType () const |
| Return the exact type of the object. 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 & | getResRef () const |
| Return the object's resource reference. More... | |
| const Aurora::LocString & | getName () const |
| Return the object's name. More... | |
| const Aurora::LocString & | getDescription () const |
| Return the object's description. More... | |
| const Common::UString & | getConversation () const |
| Return the object's default conversation (DLG). More... | |
| const Common::UString & | getNonLocalizedName () const |
| Return the object's non-localized name. More... | |
| void | setNonLocalizedName (const Common::UString &name) |
| Set the object's non-localized name. 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... | |
| 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... | |
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::DragonAge2::ScriptContainer | |
| ScriptContainer () | |
| ~ScriptContainer () | |
| const Common::UString & | getScript () const |
| bool | hasScript () const |
| void | enableEvent (EventType event, bool enabled) |
| Enable/Disable the handling of a specific event. More... | |
| void | enableEvents (bool enabled) |
| Enable/Disable the handling of all events. More... | |
| bool | runScript (EventType event, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference()) |
| bool | runScript (Event &event) |
Protected Member Functions | |
| void | syncPosition () |
| void | syncOrientation () |
| void | readVarTable (const Aurora::GFF3List &varTable) |
| void | readVarTable (const Aurora::GFF3Struct &gff) |
| void | readVarTable (const Aurora::GFF4List &varTable) |
| void | readVarTable (const Aurora::GFF4Struct &gff) |
Protected Member Functions inherited from Engines::DragonAge2::ScriptContainer | |
| void | clearScript () |
| void | readScript (const Aurora::GFF3Struct &gff) |
| void | readScript (const Aurora::GFF4Struct &gff) |
Protected Attributes | |
| ObjectType | _type |
| The object's type. More... | |
| Common::UString | _resRef |
| The object's resource reference. More... | |
| Aurora::LocString | _name |
| The object's display name. More... | |
| Aurora::LocString | _description |
| The object's description. More... | |
| Common::UString | _nonLocalizedName |
| The object's non-localized name. More... | |
| Common::UString | _conversation |
| The object's default conversation. More... | |
| Common::UString | _soundSet |
| 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... | |
| float | _position [3] |
| The object's position. More... | |
| float | _orientation [4] |
| The object's orientation. More... | |
Protected Attributes inherited from Aurora::NWScript::Object | |
| uint32 | _id |
| Common::UString | _tag |
Additional Inherited Members | |
Static Public Member Functions inherited from Engines::DragonAge2::ScriptContainer | |
| static bool | runScript (const Common::UString &script, EventType event, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference()) |
| static bool | runScript (const Common::UString &script, EventType event, const Aurora::NWScript::ScriptState &state, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference()) |
| static bool | runScript (const Common::UString &script, Event &event) |
| static bool | runScript (const Common::UString &script, Event &event, const Aurora::NWScript::ScriptState &state) |
| Engines::DragonAge2::Object::Object | ( | ObjectType | type = kObjectTypeInvalid | ) |
Definition at line 52 of file object.cpp.
References Aurora::NWScript::Object::_id, _orientation, _position, Common::generateIDNumber(), and ObjectMan.

|
virtual |
Reimplemented from Aurora::NWScript::Object.
Definition at line 66 of file object.cpp.
References ObjectMan.
|
virtual |
The object was clicked.
Reimplemented in Engines::DragonAge2::Creature, and Engines::DragonAge2::Placeable.
Definition at line 170 of file object.cpp.
Referenced by Engines::DragonAge2::Area::click().

|
virtual |
The cursor entered the object.
Reimplemented in Engines::DragonAge2::Creature, and Engines::DragonAge2::Placeable.
Definition at line 161 of file object.cpp.
Referenced by Engines::DragonAge2::Area::setActive().

| const Common::UString & Engines::DragonAge2::Object::getConversation | ( | ) | const |
Return the object's default conversation (DLG).
Definition at line 104 of file object.cpp.
References _conversation.
| const Aurora::LocString & Engines::DragonAge2::Object::getDescription | ( | ) | const |
| const std::list< uint32 > & Engines::DragonAge2::Object::getIDs | ( | ) | const |
| const Aurora::LocString & Engines::DragonAge2::Object::getName | ( | ) | const |
| const Common::UString & Engines::DragonAge2::Object::getNonLocalizedName | ( | ) | const |
Return the object's non-localized name.
The non-localized name has a higher priority than the default, localized name.
Definition at line 96 of file object.cpp.
References _nonLocalizedName.
|
virtual |
Return the object's orientation.
Definition at line 126 of file object.cpp.
References _orientation.
Referenced by Engines::DragonAge2::Placeable::setOrientation(), Engines::DragonAge2::Creature::setOrientation(), and syncOrientation().

|
virtual |
Return the object's position within its area.
Definition at line 120 of file object.cpp.
References _position.
Referenced by Engines::DragonAge2::ObjectDistanceSort::getDistance(), Engines::DragonAge2::Functions::getDistanceBetween(), Engines::DragonAge2::Area::getEntryLocation(), Engines::DragonAge2::ObjectDistanceSort::ObjectDistanceSort(), Engines::DragonAge2::Placeable::setPosition(), Engines::DragonAge2::Creature::setPosition(), and syncPosition().

| const Common::UString & Engines::DragonAge2::Object::getResRef | ( | ) | const |
Return the object's resource reference.
Definition at line 84 of file object.cpp.
References _resRef.
| ObjectType Engines::DragonAge2::Object::getType | ( | ) | const |
Return the exact type of the object.
Definition at line 70 of file object.cpp.
References _type.
Referenced by Engines::DragonAge2::Functions::getNearestObject(), Engines::DragonAge2::Functions::getNearestObjectByTag(), Engines::DragonAge2::Functions::getObjectType(), and Engines::DragonAge2::Functions::getParamObject().

|
virtual |
Hide the object's model(s).
Reimplemented in Engines::DragonAge2::Area, Engines::DragonAge2::Creature, and Engines::DragonAge2::Placeable.
Definition at line 77 of file object.cpp.
|
virtual |
(Un)Highlight the object.
Reimplemented in Engines::DragonAge2::Creature, and Engines::DragonAge2::Placeable.
Definition at line 167 of file object.cpp.
| bool Engines::DragonAge2::Object::isClickable | ( | ) | const |
Can the player click the object?
Definition at line 116 of file object.cpp.
References _static, and _usable.
Referenced by Engines::DragonAge2::Placeable::load().

| bool Engines::DragonAge2::Object::isStatic | ( | ) | const |
Is the object static (not manipulable at all)?
Definition at line 108 of file object.cpp.
References _static.
Referenced by Engines::DragonAge2::Area::loadObject().

| bool Engines::DragonAge2::Object::isUsable | ( | ) | const |
|
virtual |
The cursor left the object.
Reimplemented in Engines::DragonAge2::Campaign, Engines::DragonAge2::Creature, and Engines::DragonAge2::Placeable.
Definition at line 164 of file object.cpp.
Referenced by Engines::DragonAge2::Area::removeFocus(), and Engines::DragonAge2::Area::setActive().

|
protected |
Referenced by Engines::DragonAge2::Waypoint::load(), Engines::DragonAge2::Area::loadARE(), Engines::DragonAge2::Placeable::loadProperties(), Engines::DragonAge2::Campaign::readCIFDynamic(), and readVarTable().

|
protected |
Definition at line 207 of file object.cpp.
References Aurora::GFF3Struct::getList(), Aurora::GFF3Struct::hasField(), and readVarTable().

|
protected |
|
protected |
Definition at line 248 of file object.cpp.
References Aurora::GFF4Struct::getList(), Aurora::GFF4Struct::hasField(), Aurora::GFF4FieldNamesEnum::kGFF4ScriptVarTable, and readVarTable().

| void Engines::DragonAge2::Object::setNonLocalizedName | ( | const Common::UString & | name | ) |
Set the object's non-localized name.
Definition at line 100 of file object.cpp.
References _nonLocalizedName.
|
virtual |
Set the object's orientation.
Reimplemented in Engines::DragonAge2::Creature, and Engines::DragonAge2::Placeable.
Definition at line 140 of file object.cpp.
References _orientation.
Referenced by Engines::DragonAge2::Waypoint::load(), Engines::DragonAge2::Placeable::setOrientation(), Engines::DragonAge2::Creature::setOrientation(), and syncOrientation().

|
virtual |
Set the object's position within its area.
Reimplemented in Engines::DragonAge2::Creature, and Engines::DragonAge2::Placeable.
Definition at line 134 of file object.cpp.
References _position.
Referenced by Engines::DragonAge2::Waypoint::load(), Engines::DragonAge2::Placeable::setPosition(), Engines::DragonAge2::Creature::setPosition(), and syncPosition().

|
virtual |
Show the object's model(s).
Reimplemented in Engines::DragonAge2::Area, Engines::DragonAge2::Creature, and Engines::DragonAge2::Placeable.
Definition at line 74 of file object.cpp.
|
protected |
Definition at line 154 of file object.cpp.
References getOrientation(), and setOrientation().
Referenced by Engines::DragonAge2::Placeable::load().


|
protected |
Definition at line 147 of file object.cpp.
References getPosition(), and setPosition().
Referenced by Engines::DragonAge2::Placeable::load().


|
protected |
The object's default conversation.
Definition at line 124 of file object.h.
Referenced by getConversation(), and Engines::DragonAge2::Placeable::loadProperties().
|
protected |
The object's description.
Definition at line 120 of file object.h.
Referenced by Engines::DragonAge2::Placeable::enter(), Engines::DragonAge2::Creature::enter(), getDescription(), and Engines::DragonAge2::Placeable::loadProperties().
|
protected |
The object's model IDs.
Definition at line 131 of file object.h.
Referenced by getIDs(), and Engines::DragonAge2::Placeable::load().
|
protected |
The object's display name.
Definition at line 119 of file object.h.
Referenced by Engines::DragonAge2::Creature::createFakePC(), Engines::DragonAge2::Placeable::enter(), Engines::DragonAge2::Creature::enter(), getName(), and Engines::DragonAge2::Placeable::loadProperties().
|
protected |
The object's non-localized name.
Definition at line 122 of file object.h.
Referenced by getNonLocalizedName(), and setNonLocalizedName().
|
protected |
The object's orientation.
Definition at line 134 of file object.h.
Referenced by getOrientation(), Object(), and setOrientation().
|
protected |
The object's position.
Definition at line 133 of file object.h.
Referenced by getPosition(), Object(), and setPosition().
|
protected |
The object's resource reference.
Definition at line 117 of file object.h.
Referenced by getResRef(), and Engines::DragonAge2::Placeable::load().
|
protected |
|
protected |
Is the object static?
Definition at line 128 of file object.h.
Referenced by isClickable(), isStatic(), and Engines::DragonAge2::Placeable::loadProperties().
|
protected |
|
protected |
Is the object usable?
Definition at line 129 of file object.h.
Referenced by isClickable(), isUsable(), and Engines::DragonAge2::Placeable::loadProperties().
1.8.14