22 #ifndef DREAMWEB_STRUCTS_H 23 #define DREAMWEB_STRUCTS_H 25 #include "common/endian.h" 26 #include "common/rect.h" 34 bool _mainManCallback;
54 bool contains(uint16 x, uint16 y)
const {
55 return (x >= _xMin) && (x < _xMax) && (y >= _yMin) && (y < _yMax);
61 #include "common/pack-start.h" 85 uint8 currentLocation;
92 uint8 initialLocation;
102 bool contains(uint8 x, uint8 y)
const {
103 return (x >= xMin) && (x < xMax) && (y >= yMin) && (y < yMax);
111 uint16 ptr()
const {
return READ_LE_UINT16(&_ptr); }
112 void setPtr(uint16 v) { WRITE_LE_UINT16(&_ptr, v); }
120 uint16 frame()
const {
return READ_LE_UINT16(&frame_lo); }
121 void setFrame(uint16 v) { WRITE_LE_UINT16(&frame_lo, v); }
127 #include "common/pack-end.h" 136 uint16 reelPointer()
const {
return _reelPointer; }
137 void setReelPointer(uint16 v) { _reelPointer = v; }
138 void incReelPointer() { _reelPointer++; }
152 #include "common/pack-start.h" 177 extern const Room g_roomData[];
220 uint16 len(
unsigned int i)
const {
222 return READ_LE_UINT16(&_len[i]);
224 void setLen(
unsigned int i, uint16 length) {
226 WRITE_LE_UINT16(&_len[i], length);
238 #include "common/pack-end.h" 253 bool operator==(
const ObjectRef &r)
const {
254 return _index == r._index && _type == r._type;
256 bool operator!=(
const ObjectRef &r)
const {
257 return _index != r._index || _type != r._type;
263 #include "common/pack-start.h" 276 #include "common/pack-end.h" 283 TextFile(
unsigned int size = 66) : _size(size), _text(0) { _offsetsLE =
new uint16[_size]; }
296 const char *getString(
unsigned int i)
const {
298 return _text + getOffset(i);
300 void setOffset(
unsigned int i, uint16 offset) {
301 WRITE_LE_UINT16(&_offsetsLE[i], offset);
303 uint16 getOffset(
unsigned int i)
const {
304 return READ_LE_UINT16(&_offsetsLE[i]);
318 const uint8 *getFrameData(
unsigned int i)
const {
322 return _data + _frames[i].ptr();
334 uint8 _progressPoints;
348 uint16 _watchingTime;
350 uint16 _endWatchReel;
354 uint16 _endOfHoldReel;
356 uint8 _destAfterHold;
371 uint8 _talkedToAttendant;
372 uint8 _talkedToSparky;
374 uint8 _talkedToRecep;
390 uint8 _roomAfterDream;
395 TimedTemp() : _timeCount(0), _string(0) { }
401 uint16 _countToTimed;
Definition: structs.h:265
Definition: structs.h:230
Definition: structs.h:394
Definition: structs.h:144
Definition: structs.h:332
Definition: structs.h:282
Definition: structs.h:179
Definition: structs.h:154
Definition: structs.h:131
Definition: structs.h:270
Definition: structs.h:249
Definition: structs.h:117
Definition: structs.h:205
Definition: structs.h:194
Definition: structs.h:312
Definition: structs.h:210
Definition: structs.h:107
Definition: structs.h:187
Definition: dreamweb.h:102