55 return Renderable::isVisible();
68 warning(
"Trigger \"%s\" has no blueprint", temp.
c_str());
74 glm::vec3 position(x, y, z);
80 glm::vec3 orientation(x, y, z);
83 for (Aurora::GFF3List::const_iterator p = geometry.begin();
86 x = (float)(*p)->getDouble(
"PointX");
87 y = (float)(*p)->getDouble(
"PointY");
88 z = (float)(*p)->getDouble(
"PointZ");
89 _geometry.push_back(position + glm::vec3(x, y, z));
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 hide()
Hide the object's model(s).
void hideSoft()
Hide the object's model(s) if applicable.
A class holding an UTF-8 string.
void reset(PointerType o=0)
Resets the pointer with the new value.
Trigger template (user), 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.
void show()
Show the object's model(s).
bool isVisible() const
Is the object's model(s) visible?
Trigger in a Star Wars: Knights of the Old Republic area.
const char * c_str() const
Return the (utf8 encoded) string data.
Common::UString _name
The object's display name.
double getDouble(const Common::UString &field, double def=0.0) const
void load(const Aurora::GFF3Struct &gff)
bool empty() const
Is the string empty?
void warning(const char *s,...)
std::vector< const GFF3Struct * > GFF3List
const GFF3List & getList(const Common::UString &field) const
virtual void setPosition(float x, float y, float z)
Set the object's position within its area.
std::vector< glm::vec3 > _geometry
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
Generic Aurora engines utility functions.
void readScripts(const Aurora::GFF3Struct &gff, bool clear=true)
The global resource manager for Aurora resources.
void loadBlueprint(const Aurora::GFF3Struct &gff)