76 e.
add(
"Placeable \"%s\" has no blueprint",
_tag.
c_str());
126 if (!appearance.
empty())
157 float x, y, z, angle;
159 _model->setPosition(x, y, z);
161 _model->setOrientation(x, y, z, angle);
180 _model->drawBound(enabled);
186 if (newState == -1) {
203 if (newState != -1) {
223 for (
int i = 0;i < inputCount; i++) {
226 if (input == inputValue) {
228 return trans.
getSint(transKey);
int64 getSint(const Common::UString &field, int64 def=0) const
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.
Common::UString _conversation
The object's default conversation.
void add(const char *s,...) GCC_PRINTF(2
#define TalkMan
Shortcut for accessing the talk manager.
const Common::UString & getString(size_t column) const
Return the contents of a cell as a string.
bool getBool(const Common::UString &field, bool def=false) const
void loadInstance(const Aurora::GFF3Struct &gff)
Load the placeable's instance properties.
A class holding an UTF-8 string.
void reset(PointerType o=0)
Resets the pointer with the new value.
void loadPositional(const Aurora::GFF3Struct &gff)
Load the object's positional gff struct which contains the position and orientation.
A placeable in a Jade Empire area.
uint64 getUint(const Common::UString &field, uint64 def=0) const
void hide()
Hide the placeable's model.
virtual void playAnimation(const Common::UString &animation="", bool restart=true, int32 loopCount=0)
Play an object animation.
void readScripts(const Aurora::GFF3Struct &gff)
Common::UString _resRef
The placeable's description resref.
Exception that provides a stack of explanations.
void leave()
The cursor left the placeable.
bool runScript(Script script, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
bool isClickable() const
Can the player click the object?
bool close(Object *closer)
The closer object closes this placeable.
Basic exceptions to throw.
int32 _state
The placeable's current state.
const char * c_str() const
Return the (utf8 encoded) string data.
void loadBlueprint(const Aurora::GFF3Struct &gff)
Load the placeable's blueprint properties.
static UString format(const char *s,...) GCC_PRINTF(1
Print formatted data into an UString object, similar to sprintf().
Basic Jade Empire type definitions.
Common::ScopedPtr< Graphics::Aurora::Model > _model
The placeable's model.
Utility templates and functions.
virtual void getOrientation(float &x, float &y, float &z, float &angle) const
Return the object's orientation.
Handling BioWare's 2DAs (two-dimensional array).
A GFF (generic file format) V3.2/V3.3 file, found in all Aurora games except Sonic Chronicles: The Da...
Common::ScopedPtr< Aurora::GFF3File > _fsm
The placeable's state file.
bool _active
Is the object currently active/available/visible?
bool empty() const
Is the string empty?
#define TwoDAReg
Shortcut for accessing the 2da registry.
void show()
Show the placeable's model.
bool open(Object *opener)
The opener object opens this placeable.
void loadAppearance()
Load appearance-specific properties.
virtual void getPosition(float &x, float &y, float &z) const
Return the object's position within its area.
void warning(const char *s,...)
int32 getInt(size_t column) const
Return the contents of a cell as an int.
Common::UString _soundCue
The placeable's sound cue.
An object within a Jade area.
std::list< uint32 > _ids
The object's model IDs.
virtual void highlight(bool enabled)
(Un)Highlight the placeable.
int32 nextState(const Common::UString &input)
Determines the result State according to the state model.
uint32 _appearanceType
The index within the placeable 2DA.
const GFF3Struct & getStruct(const Common::UString &field) const
Placeable(const Aurora::GFF3Struct &placeable)
Load from a placeable instance.
The global talk manager for Aurora strings.
static const uint32 kFieldIDInvalid
Common::UString _modelName
The model's resource name.
void enter()
The cursor entered the placeable.
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
Common::UString _name
The object's display name.
Graphics::Aurora::Model * loadModelObject(const Common::UString &resref, const Common::UString &texture)
void loadProperties()
Load properties from placeable.2da.
Object * _lastClosedBy
The object that last closed this placeable object.
Object * _lastOpenedBy
The object that last opened this placeable object.
Finite State Machine data.
void load(const Aurora::GFF3Struct &placeable)
Load from a placeable instance.
Generic Aurora engines model functions.