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