40 _hasMapNote(false), _enabledMapNote(false) {
56 load(waypoint, utw ? &utw->getTopLevel() : 0);
90 float bearingX = instance.
getDouble(
"XOrientation");
91 float bearingY = instance.
getDouble(
"YOrientation");
Handling version V3.2/V3.3 of BioWare's GFFs (generic file format).
#define MKTAG(a0, a1, a2, a3)
A wrapper macro used around four character constants, like 'DATA', to ensure portability.
virtual void hide()
Hide the object's model(s).
A waypoint in a Star Wars: Knights of the Old Republic area.
bool getBool(const Common::UString &field, bool def=false) const
bool hasMapNote() const
Does this waypoint have a map note?
A class holding an UTF-8 string.
Common::UString _mapNote
The waypoint's map note text.
void reset(PointerType o=0)
Resets the pointer with the new value.
void load(const Aurora::GFF3Struct &waypoint)
Load from a waypoint instance.
Aurora::GFF3File * loadOptionalGFF3(const Common::UString &gff3, Aurora::FileType type, uint32 id, bool repairNWNPremium)
Load a GFF3, but return 0 instead of throwing on error.
bool enabledMapNote() const
Is this waypoint's map note currently enabled?
A simple scoped smart pointer template.
void loadProperties(const Aurora::GFF3Struct &gff)
Load general waypoint properties.
Common::UString getMapNote() const
Return the waypoint's map note text.
bool _hasMapNote
Does this waypoint have a map note?
Utility templates and functions.
bool _enabledMapNote
Is this waypoint's map note enabled?
double getDouble(const Common::UString &field, double def=0.0) const
virtual void setOrientation(float x, float y, float z, float angle)
Set the object's orientation.
bool empty() const
Is the string empty?
void enableMapNote(bool enabled)
Enable/Disable the waypoint's map note.
Waypoint(const Aurora::GFF3Struct &waypoint)
Load from a waypoint instance.
virtual void setPosition(float x, float y, float z)
Set the object's position within its area.
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
static float rad2deg(float rad)
Generic Aurora engines utility functions.
void readScripts(const Aurora::GFF3Struct &gff, bool clear=true)