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.
Waypoint(const Aurora::GFF3Struct &waypoint)
Load from a waypoint instance.
void readScripts(const Aurora::GFF3Struct &gff)
bool getBool(const Common::UString &field, bool def=false) const
A class holding an UTF-8 string.
virtual void setOrientation(float x, float y, float z, float angle)
Set the object's orientation.
void reset(PointerType o=0)
Resets the pointer with the new value.
bool _enabledMapNote
Is this waypoint's map note enabled?
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.
A simple scoped smart pointer template.
bool enabledMapNote() const
Is this waypoint's map note currently enabled?
Utility templates and functions.
double getDouble(const Common::UString &field, double def=0.0) const
bool hasMapNote() const
Does this waypoint have a map note?
virtual void setPosition(float x, float y, float z)
Set the object's position within its area.
bool empty() const
Is the string empty?
bool _hasMapNote
Does this waypoint have a map note?
void load(const Aurora::GFF3Struct &waypoint)
Load from a waypoint instance.
Common::UString _mapNote
The waypoint's map note text.
Common::UString getMapNote() const
Return the waypoint's map note text.
void loadProperties(const Aurora::GFF3Struct &gff)
Load general waypoint properties.
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
static float rad2deg(float rad)
Generic Aurora engines utility functions.
virtual void hide()
Hide the object's model(s).
A waypoint in a Neverwinter Nights area.
void enableMapNote(bool enabled)
Enable/Disable the waypoint's map note.