41 namespace DragonAge2 {
    44     _appearanceID(0xFFFFFFFF) {
    58         _model->setPosition(x, y, z);
    66         _model->setOrientation(x, y, z, angle);
    80     status(
"Placeable \"%s\" (\"%s\"): \"%s\"",
    92         _model->drawBound(enabled);
   109     load(placeable, utp ? &utp->getTopLevel() : 0);
   152         const float position[3] = {
   158         setPosition(position[0], position[1], position[2]);
   163         const float orientation[4] = {
   170         setOrientation(orientation[0], orientation[1], orientation[2], orientation[3]);
 void load(const Aurora::GFF3Struct &placeable)
 
Handling version V3.2/V3.3 of BioWare's GFFs (generic file format). 
 
A placeable object in a Dragon Age II area. 
 
#define MKTAG(a0, a1, a2, a3)
A wrapper macro used around four character constants, like 'DATA', to ensure portability. 
 
Handling BioWare's GDAs (2DAs, two-dimensional array, within V4.0 GFFs). 
 
bool _usable
Is the object usable? 
 
void highlight(bool enabled)
(Un)Highlight the placeable. 
 
bool getBool(const Common::UString &field, bool def=false) const
 
bool getLocString(const Common::UString &field, LocString &str) const
 
void setPosition(float x, float y, float z)
Set the placeable's position. 
 
virtual void setOrientation(float x, float y, float z, float angle)
Set the object's orientation. 
 
void reset(PointerType o=0)
Resets the pointer with the new value. 
 
virtual void setPosition(float x, float y, float z)
Set the object's position within its area. 
 
bool hasField(const Common::UString &field) const
Does this specific field exist? 
 
void enableEvents(bool enabled)
Enable/Disable the handling of all events. 
 
Dragon Age II utility functions. 
 
bool isClickable() const
Can the player click the object? 
 
Common::UString _resRef
The object's resource reference. 
 
uint64 getUint(const Common::UString &field, uint64 def=0) const
 
size_t findRow(uint32 id) const
Find a row by its ID value. 
 
const Aurora::GDAFile & getMGDA(uint32 id)
 
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. 
 
bool runScript(EventType event, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
 
const Common::UString & getString(Language language, LanguageGender gender=kLanguageGenderCurrent) const
Get the string of that language. 
 
bool _static
Is the object static? 
 
bool click(Object *triggerer=0)
The placeable was clicked. 
 
Common::UString _conversation
The object's default conversation. 
 
void hide()
Hide the placeable's model. 
 
const char * c_str() const
Return the (utf8 encoded) string data. 
 
uint32 _appearanceID
The placeable's appearance; index into the Placeables MGDA. 
 
Utility templates and functions. 
 
virtual void getOrientation(float &x, float &y, float &z, float &angle) const
Return the object's orientation. 
 
double getDouble(const Common::UString &field, double def=0.0) const
 
Placeable template (user), GFF. 
 
Common::ScopedPtr< Graphics::Aurora::Model > _model
The placeable's model. 
 
bool empty() const
Is the string empty? 
 
Common::UString getString(size_t row, uint32 columnHash, const Common::UString &def="") const
 
void show()
Show the placeable's model. 
 
void leave()
The cursor left the placeable. 
 
void enter()
The cursor entered the placeable. 
 
virtual void getPosition(float &x, float &y, float &z) const
Return the object's position within its area. 
 
Aurora::LocString _name
The object's display name. 
 
void status(const char *s,...)
 
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
 
static float rad2deg(float rad)
 
Aurora::LocString _description
The object's description. 
 
Generic Aurora engines utility functions. 
 
Graphics::Aurora::Model * loadModelObject(const Common::UString &resref, const Common::UString &texture)
 
Placeable(const Aurora::GFF3Struct &placeable)
Load from a placeable instance. 
 
void setOrientation(float x, float y, float z, float angle)
Set the placeable's orientation. 
 
void loadProperties(const Aurora::GFF3Struct &gff)
 
void readVarTable(const Aurora::GFF3List &varTable)
 
Class to hold the GFF'd two-dimensional array of a GDA file. 
 
std::list< uint32 > _ids
The object's model IDs. 
 
void readScript(const Aurora::GFF3Struct &gff)
 
Generic Aurora engines model functions.