86 const float position[3] = {
95 const float orientation[4] = {
96 (float) waypoint.
getDouble(
"XOrientation"),
97 (float) waypoint.
getDouble(
"YOrientation"),
98 (float) waypoint.
getDouble(
"ZOrientation"),
102 setOrientation(orientation[0], orientation[1], orientation[2], orientation[3]);
int64 getSint(const Common::UString &field, int64 def=0) const
Handling version V3.2/V3.3 of BioWare's GFFs (generic file format).
const Aurora::LocString & getMapNote() const
Return the waypoint's map note text.
uint32 _type
Index into the Waypoints MGDA.
Handling BioWare's GDAs (2DAs, two-dimensional array, within V4.0 GFFs).
bool getBool(const Common::UString &field, bool def=false) const
bool getLocString(const Common::UString &field, LocString &str) const
A class holding an UTF-8 string.
const Common::UString & getIcon() const
Return the icon representing the waypoint on the map.
A waypoint in a Dragon Age: Origins area.
const Aurora::GDAFile & getMGDA(uint32 id)
Aurora::LocString _mapNote
The waypoint's map note text.
bool _enabledMapNote
Is this waypoint's map note enabled?
bool enabledMapNote() const
Is the map note enabled?
Utility templates and functions.
Waypoint(const Aurora::GFF3Struct &waypoint)
Load from a waypoint instance.
double getDouble(const Common::UString &field, double def=0.0) const
Dragon Age: Origins utility functions.
int32 _group
The ID of the group this waypoint belongs to.
void readVarTable(const Aurora::GFF3List &varTable)
bool hasMapNote() const
Does this waypoint have a map note?
Common::UString getString(size_t row, uint32 columnHash, const Common::UString &def="") const
virtual void setPosition(float x, float y, float z)
Set the object's position within its area.
void enableMapNote(bool enabled)
Enable/Disable the waypoint's map note.
bool _hasMapNote
Does this waypoint have a map note?
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
void readScript(const Aurora::GFF3Struct &gff)
void load(const Aurora::GFF3Struct &waypoint)
static float rad2deg(float rad)
virtual void setOrientation(float x, float y, float z, float angle)
Set the object's orientation.
int32 getGroup() const
Return the ID of the group this waypoint belongs to.
void enableEvents(bool enabled)
Enable/Disable the handling of all events.
Class to hold the GFF'd two-dimensional array of a GDA file.
Common::UString _icon
The icon to show in the mini map for this waypoint.