22 #ifndef ASYLUM_RESOURCES_OBJECT_H 23 #define ASYLUM_RESOURCES_OBJECT_H 25 #include "common/rect.h" 26 #include "common/serializer.h" 27 #include "common/stream.h" 29 #include "asylum/shared.h" 31 #include "asylum/system/sound.h" 51 void setFrameIndex(int32 index) { _frameIndex = index; }
52 void setPriority(int32 priority) { _priority = priority; }
53 void setSoundResourceId(ResourceId
id) { _soundResourceId = id; }
55 void setTransparency(int32 val) { _transparency = val; }
56 void setField6A4(ActorDirection val) { _field_6A4 = val; }
58 Common::Rect *getBoundingRect() {
return &_boundingRect; }
59 uint32 getFrameIndex() {
return _frameIndex; }
60 uint32 getFrameCount() {
return _frameCount; }
61 FrameSoundItem *getFrameSoundItem(uint32 index) { assert(index <
ARRAYSIZE(_frameSoundItems));
return &_frameSoundItems[index]; }
62 ObjectId getId() {
return _id; }
63 uint32 getPolygonIndex() {
return _polygonIndex; }
64 int32 getPriority() {
return _priority; }
65 ResourceId getResourceId() {
return _resourceId; }
66 ResourceId getSoundResourceId() {
return _soundResourceId; }
69 int32 getScriptIndex() {
return _scriptIndex; }
70 int32 getSoundY() {
return _soundCoords.
y; }
71 int32 getTransparency() {
return _transparency; }
72 int32 getField688() {
return _field_688; }
73 ActorDirection getField6A4() {
return _field_6A4; }
156 char *getName() {
return _name; }
178 ResourceId _resourceId;
191 uint32 _polygonIndex;
193 int32 _gameFlags[10];
205 ResourceId _randomResourceIds[5];
206 ResourceId _soundResourceId;
207 ActorDirection _field_6A4;
214 bool isVisible()
const;
225 void updateSoundItems();
237 ResourceId getRandomResourceId();
243 #endif // ASYLUM_RESOURCES_OBJECT_H #define ARRAYSIZE(x)
Definition: util.h:91
void setNextFrame(uint32 flags)
Common::String toString(bool shortString=true)
Definition: serializer.h:79
void adjustCoordinates(Common::Point *point)
void disableAndRemoveFromQueue()
void load(Common::SeekableReadStream *stream)
Definition: serializer.h:308
int16 y
Definition: rect.h:47