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.
void enableMapNote(bool enabled)
Enable/Disable the waypoint's map note.
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.
bool _enabledMapNote
Is this waypoint's map note enabled?
bool enabledMapNote() const
Is this waypoint's map note currently enabled?
virtual void setPosition(float x, float y, float z)
Set the object's position within its area.
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.
virtual void hide()
Hide the object's model(s).
bool _hasMapNote
Does this waypoint have a map note?
A simple scoped smart pointer template.
Utility templates and functions.
void load(const Aurora::GFF3Struct &waypoint)
Load from a waypoint instance.
double getDouble(const Common::UString &field, double def=0.0) const
bool empty() const
Is the string empty?
Common::UString _mapNote
The waypoint's map note text.
virtual void setOrientation(float x, float y, float z, float angle)
Set the object's orientation.
void loadProperties(const Aurora::GFF3Struct &gff)
Load general waypoint properties.
Waypoint(const Aurora::GFF3Struct &waypoint)
Load from a waypoint instance.
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)
A waypoint in a Star Wars: Knights of the Old Republic II - The Sith Lords area.
Common::UString getMapNote() const
Return the waypoint's map note text.