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::DragonAge::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::DragonAge::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::DragonAge::Waypoint::Waypoint | ( | const Aurora::GFF3Struct & | waypoint | ) |
Load from a waypoint instance.
Definition at line 38 of file waypoint.cpp.
References load().
Engines::DragonAge::Waypoint::~Waypoint | ( | ) |
Definition at line 42 of file waypoint.cpp.
bool Engines::DragonAge::Waypoint::enabledMapNote | ( | ) | const |
void Engines::DragonAge::Waypoint::enableMapNote | ( | bool | enabled | ) |
Enable/Disable the waypoint's map note.
Definition at line 57 of file waypoint.cpp.
References _enabledMapNote.
int32 Engines::DragonAge::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::DragonAge::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::DragonAge::Waypoint::getMapNote | ( | ) | const |
Return the waypoint's map note text.
Definition at line 61 of file waypoint.cpp.
References _mapNote.
bool Engines::DragonAge::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::DragonAge::ScriptContainer::enableEvents(), Aurora::GFF3Struct::getBool(), Aurora::GFF3Struct::getDouble(), Aurora::GFF3Struct::getLocString(), Engines::DragonAge::getMGDA(), Aurora::GFF3Struct::getSint(), Aurora::GDAFile::getString(), Aurora::GFF3Struct::getString(), Engines::DragonAge::kWorksheetWaypoints, Common::rad2deg(), Engines::DragonAge::ScriptContainer::readScript(), Engines::DragonAge::Object::readVarTable(), Engines::DragonAge::Object::setOrientation(), and Engines::DragonAge::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().