40 _hasMapNote(false), _enabledMapNote(false) {
56 load(waypoint, utw ? &utw->getTopLevel() : 0);
94 float bearingX = instance.
getDouble(
"XOrientation");
95 float bearingY = instance.
getDouble(
"YOrientation");
Handling version V3.2/V3.3 of BioWare's GFFs (generic file format).
bool enabledMapNote() const
Is this waypoint's map note currently enabled?
#define MKTAG(a0, a1, a2, a3)
A wrapper macro used around four character constants, like 'DATA', to ensure portability.
virtual void setPosition(float x, float y, float z)
Set the object's position within its area.
bool getBool(const Common::UString &field, bool def=false) const
bool getLocString(const Common::UString &field, LocString &str) const
A class holding an UTF-8 string.
An object within a Witcher area.
void reset(PointerType o=0)
Resets the pointer with the new value.
virtual void hide()
Hide the object's model(s).
void readScripts(const Aurora::GFF3Struct &gff)
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.
Aurora::LocString _mapNote
The waypoint's map note text.
const Aurora::LocString & getMapNote() const
Return the waypoint's map note text.
bool _enabledMapNote
Is this waypoint's map note enabled?
Utility templates and functions.
bool _hasMapNote
Does this waypoint have a map note?
double getDouble(const Common::UString &field, double def=0.0) const
void refreshLocalized()
Refresh all localized strings.
Common::UString _uniqueID
A globally unique ID.
bool empty() const
Is the string empty?
A waypoint in a The Witcher area.
Handling BioWare's localized strings.
virtual void refreshLocalized()
Refresh all localized strings.
void load(const Aurora::GFF3Struct &waypoint)
Load from a waypoint instance.
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
void enableMapNote(bool enabled)
Enable/Disable the waypoint's map note.
static float rad2deg(float rad)
Generic Aurora engines utility functions.
bool hasMapNote() const
Does this waypoint have a map note?