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