22 #ifndef MACS2_GAMEOBJECTS_H 23 #define MACS2_GAMEOBJECTS_H 25 #include "common/array.h" 26 #include "common/rect.h" 27 #include "common/singleton.h" 30 class MemoryReadStream;
31 class MemoryReadStreamEndian;
48 int _currentSceneIndex;
55 int _currentActorIndex;
77 uint16 readNumAnimations();
79 void seekToAnimation(uint16 index);
83 void skipCurrentAnimationFrame();
90 uint32 _dataOffset = 0;
93 uint16 _overloadAnimationSourceKey = 0;
94 bool _overloadAnimationMirrored =
false;
95 bool _useOverloadAnimation =
false;
99 uint16 _overloadAnimTriggerDirection = 0x7FFF;
103 uint16 _sceneIndex = 0;
119 uint16 _orientation = 0;
124 uint16 _verticalOffsetScale = 0;
126 uint16 _pickupFrameStart = 0;
128 uint16 _pickupFrameEnd = 0;
130 bool _snapToTarget =
false;
133 bool _hasShading =
false;
136 bool _hasScaling =
false;
141 bool _hasBoundsAttachment =
false;
142 uint16 _boundsAttachmentObjectID = 0;
143 uint16 _boundsAttachmentValue1 = 0;
144 uint16 _boundsAttachmentValue2 = 0;
145 uint16 _boundsAttachmentValue3 = 0;
148 int16 _dirtyLeft = 0;
150 int16 _dirtyRight = 0;
151 int16 _dirtyBottom = 0;
152 int16 _lastDrawX = 0;
153 int16 _lastDrawY = 0;
154 uint16 _lastDrawWidth = 0;
155 uint16 _lastDrawHeight = 0;
157 void resetDrawBounds() {
181 uint32 _resourceOffsets[32] = {0};
189 int16 stepDeltaX = 0;
190 int16 stepDeltaY = 0;
192 bool stepDirectionSet =
false;
193 int16 currentPathIndex = 0;
195 uint16 motionTargetVerticalOffset = 0;
196 uint16 motionVerticalOffsetDelta = 0;
197 uint16 motionDistanceUnits = 0;
198 uint16 motionProgress = 0;
210 bool isAnimSlotLoaded(uint16 orient)
const;
227 static bool isNpcIndex(uint16 objectIndex);
231 static GameObject *getObjectByIndex(uint16 index);
238 #endif // MACS2_GAMEOBJECTS_H Definition: gameobjects.h:86
Definition: gameobjects.h:69
Definition: gameobjects.h:36
Definition: memstream.h:103
Definition: gameobjects.h:185
Definition: gameobjects.h:43
Definition: algorithm.h:29
Definition: memstream.h:43
Definition: debugtools.h:25
Definition: gameobjects.h:213
Definition: singleton.h:42