56 return Renderable::isVisible();
69 warning(
"Trigger \"%s\" has no blueprint", temp.
c_str());
75 glm::vec3 position(x, y, z);
81 glm::vec3 orientation(x, y, z);
84 for (Aurora::GFF3List::const_iterator p = geometry.begin();
87 x = (float)(*p)->getDouble(
"PointX");
88 y = (float)(*p)->getDouble(
"PointY");
89 z = (float)(*p)->getDouble(
"PointZ");
90 _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.
A class holding an UTF-8 string.
void reset(PointerType o=0)
Resets the pointer with the new value.
void load(const Aurora::GFF3Struct &gff)
Trigger in a Star Wars: Knights of the Old Republic II: The Sith Lords area.
Trigger template (user), GFF.
bool isVisible() const
Is the object's model(s) visible?
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.
void loadBlueprint(const Aurora::GFF3Struct &gff)
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
bool empty() const
Is the string empty?
void hideSoft()
Hide the object's model(s) if applicable.
void warning(const char *s,...)
std::vector< const GFF3Struct * > GFF3List
const GFF3List & getList(const Common::UString &field) const
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)
void show()
Show the object's model(s).
void hide()
Hide the object's model(s).
The global resource manager for Aurora resources.