45 84, 81, 82, 0xFFFFFFFF, 89, 0xFFFFFFFF, 92, 0xFFFFFFFF,
46 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 101,
47 136, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF,
48 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF,
49 127, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 130, 0xFFFFFFFF, 134,
50 135, 0xFFFFFFFF, 0xFFFFFFFF,
58 _placeableID(0xFFFFFFFF), _typeID(0xFFFFFFFF), _appearanceID(0xFFFFFFFF), _scale(1.0f) {
98 _model->drawBound(enabled);
108 _model->setPosition(x, y, z);
117 _model->setOrientation(x, y, z, angle);
154 _model->setClickable(
true);
160 double x = 0.0, y = 0.0, z = 0.0;
virtual void getOrientation(float &x, float &y, float &z, float &angle) const
Return the object's orientation.
Common::ChangeID _modelTexture
The resource change created by indexing the model's texture.
The context holding a Sonic Chronicles: The Dark Brotherhood area.
bool getVector3(uint32 field, double &v1, double &v2, double &v3) const
Generic Aurora engines resource utility functions.
Handling BioWare's GDAs (2DAs, two-dimensional array, within V4.0 GFFs).
Common::UString getString(uint32 field, Common::Encoding encoding, const Common::UString &def="") const
Return a field string, read from the given encoding.
virtual void setPosition(float x, float y, float z)
Set the placeable's position within its area.
float getFloat(size_t row, uint32 columnHash, float def=0.0f) const
void reset(PointerType o=0)
Resets the pointer with the new value.
virtual void setOrientation(float x, float y, float z, float angle)
Set the placeable's orientation.
uint32 _placeableID
The placeable's identifer from GFF.
Utility functions for generating unique IDs.
uint32 _appearanceID
The placeable's appearance.
#define ARRAYSIZE(x)
Macro which determines the number of entries in a fixed size array.
static void getWorldPosition(float x, float y, float z, float &worldX, float &worldY, float &worldZ)
Return a position that would position on object at these coordinates within the area.
virtual void getPosition(float &x, float &y, float &z) const
Return the object's position within its area.
An object within a Sonic area.
void deindexResources(Common::ChangeID &changeID)
Remove previously added resources from the ResourceManager.
Handling version V4.0/V4.1 of BioWare's GFFs (generic file format).
void indexMandatoryArchive(const Common::UString &file, uint32 priority, const std::vector< byte > &password, Common::ChangeID *changeID)
const char * c_str() const
Return the (utf8 encoded) string data.
Common::UString _modelName
The name of the model representing this placeable.
uint32 _typeID
The placeable's type.
double getDouble(uint32 field, double def=0.0) const
Utility templates and functions.
static const uint32 kTypeAppearances[]
Map a placeable type ID onto an appearance ID.
bool hasField(uint32 field) const
Does this specific field exist?
void hide()
Hide the placeable's model.
bool empty() const
Is the string empty?
#define TwoDAReg
Shortcut for accessing the 2da registry.
void enter()
The cursor entered the placeable.
void warning(const char *s,...)
Common::UString getString(size_t row, uint32 columnHash, const Common::UString &def="") const
virtual void setOrientation(float x, float y, float z, float angle)
Set the object's orientation.
bool hasRow(size_t row) const
Does this row exist in the GDA?
virtual void setPosition(float x, float y, float z)
Set the object's position within its area.
static float rad2deg(float rad)
A placeable object in a Sonic Chronicles: The Dark Brotherhood area.
void leave()
The cursor left the placeable.
void show()
Show the placeable's model.
Graphics::Aurora::Model * loadModelObject(const Common::UString &resref, const Common::UString &texture)
uint64 getUint(uint32 field, uint64 def=0) const
Common::ScopedPtr< Graphics::Aurora::Model > _model
The placeable's model.
void highlight(bool enabled)
(Un)Highlight the placeable.
uint32 generateIDNumber()
uint32 _modelID
The ID of the object's model.
float _scale
The scale modifying this placeable's model.
Class to hold the GFF'd two-dimensional array of a GDA file.
void load(const Aurora::GFF4Struct &placeable)
Load from a placeable instance.
Placeable(const Aurora::GFF4Struct &placeable)
Load from a placeable instance.
Generic Aurora engines model functions.