xoreos
0.0.5
|
#include <waypoint.h>
Public Member Functions | |
Waypoint (const Aurora::GFF3Struct &waypoint) | |
Load from a waypoint instance. More... | |
~Waypoint () | |
int32 | getGroup () const |
Return the ID of the group this waypoint belongs to. More... | |
bool | hasMapNote () const |
Does this waypoint have a map note? More... | |
bool | enabledMapNote () const |
Is the map note enabled? More... | |
void | enableMapNote (bool enabled) |
Enable/Disable the waypoint's map note. More... | |
const Aurora::LocString & | getMapNote () const |
Return the waypoint's map note text. More... | |
const Common::UString & | getIcon () const |
Return the icon representing the waypoint on the map. More... | |
Public Member Functions inherited from Engines::DragonAge2::Object | |
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) |
Private Member Functions | |
void | load (const Aurora::GFF3Struct &waypoint) |
Private Attributes | |
int32 | _group |
The ID of the group this waypoint belongs to. More... | |
bool | _hasMapNote |
Does this waypoint have a map note? More... | |
bool | _enabledMapNote |
Is this waypoint's map note enabled? More... | |
Aurora::LocString | _mapNote |
The waypoint's map note text. More... | |
uint32 | _type |
Index into the Waypoints MGDA. More... | |
Common::UString | _icon |
The icon to show in the mini map for this waypoint. More... | |
Definition at line 37 of file waypoint.h.
Engines::DragonAge2::Waypoint::Waypoint | ( | const Aurora::GFF3Struct & | waypoint | ) |
Load from a waypoint instance.
Definition at line 38 of file waypoint.cpp.
References load().
Engines::DragonAge2::Waypoint::~Waypoint | ( | ) |
Definition at line 42 of file waypoint.cpp.
bool Engines::DragonAge2::Waypoint::enabledMapNote | ( | ) | const |
void Engines::DragonAge2::Waypoint::enableMapNote | ( | bool | enabled | ) |
Enable/Disable the waypoint's map note.
Definition at line 57 of file waypoint.cpp.
References _enabledMapNote.
int32 Engines::DragonAge2::Waypoint::getGroup | ( | ) | const |
Return the ID of the group this waypoint belongs to.
Definition at line 45 of file waypoint.cpp.
References _group.
const Common::UString & Engines::DragonAge2::Waypoint::getIcon | ( | ) | const |
Return the icon representing the waypoint on the map.
Definition at line 65 of file waypoint.cpp.
References _icon.
const Aurora::LocString & Engines::DragonAge2::Waypoint::getMapNote | ( | ) | const |
Return the waypoint's map note text.
Definition at line 61 of file waypoint.cpp.
References _mapNote.
bool Engines::DragonAge2::Waypoint::hasMapNote | ( | ) | const |
Does this waypoint have a map note?
Definition at line 49 of file waypoint.cpp.
References _hasMapNote.
|
private |
Definition at line 69 of file waypoint.cpp.
References _enabledMapNote, _group, _hasMapNote, _icon, _mapNote, Aurora::NWScript::Object::_tag, _type, Engines::DragonAge2::ScriptContainer::enableEvents(), Aurora::GFF3Struct::getBool(), Aurora::GFF3Struct::getDouble(), Aurora::GFF3Struct::getLocString(), Engines::DragonAge2::getMGDA(), Aurora::GFF3Struct::getSint(), Aurora::GDAFile::getString(), Aurora::GFF3Struct::getString(), Engines::DragonAge2::kWorksheetWaypoints, Common::rad2deg(), Engines::DragonAge2::ScriptContainer::readScript(), Engines::DragonAge2::Object::readVarTable(), Engines::DragonAge2::Object::setOrientation(), and Engines::DragonAge2::Object::setPosition().
Referenced by Waypoint().
|
private |
Is this waypoint's map note enabled?
Definition at line 68 of file waypoint.h.
Referenced by enabledMapNote(), enableMapNote(), and load().
|
private |
The ID of the group this waypoint belongs to.
Definition at line 65 of file waypoint.h.
Referenced by getGroup(), and load().
|
private |
Does this waypoint have a map note?
Definition at line 67 of file waypoint.h.
Referenced by hasMapNote(), and load().
|
private |
The icon to show in the mini map for this waypoint.
Definition at line 77 of file waypoint.h.
|
private |
The waypoint's map note text.
Definition at line 71 of file waypoint.h.
Referenced by getMapNote(), and load().
|
private |
Index into the Waypoints MGDA.
The type of the map note.
Definition at line 74 of file waypoint.h.
Referenced by load().