22 #ifndef TRECISION_STRUCT_H 23 #define TRECISION_STRUCT_H 25 #include "common/stream.h" 26 #include "common/rect.h" 27 #include "common/scummsys.h" 28 #include "common/serializer.h" 29 #include "graphics/surface.h" 30 #include "trecision/defines.h" 37 uint16 _object[MAXOBJINROOM];
38 uint16 _sounds[MAXSOUNDSINROOM];
39 uint16 _actions[MAXACTIONINROOM];
41 bool hasExtra() {
return _flag & kObjFlagExtra; }
42 bool isDone() {
return _flag & kObjFlagDone; }
43 void setExtra(
bool on) {
if (on) _flag |= kObjFlagExtra;
else _flag &= ~kObjFlagExtra; }
44 void setDone(
bool on) {
if (on) _flag |= kObjFlagDone;
else _flag &= ~kObjFlagDone; }
66 void setFlagDone(
bool on) {
if (on) _flag |= kObjFlagDone;
else _flag &= ~kObjFlagDone; }
67 void setFlagExamine(
bool on) {
if (on) _flag |= kObjFlagExamine;
else _flag &= ~kObjFlagExamine; }
68 void setFlagExtra(
bool on) {
if (on) _flag |= kObjFlagExtra;
else _flag &= ~kObjFlagExtra; }
69 void setFlagPerson(
bool on) {
if (on) _flag |= kObjFlagPerson;
else _flag &= ~kObjFlagPerson; }
70 void setFlagRoomOut(
bool on) {
if (on) _flag |= kObjFlagRoomOut;
else _flag &= ~kObjFlagRoomOut; }
71 void setFlagRoomIn(
bool on) {
if (on) _flag |= kObjFlagRoomIn;
else _flag &= ~kObjFlagRoomIn; }
72 void setFlagTake(
bool on) {
if (on) _flag |= kObjFlagTake;
else _flag &= ~kObjFlagTake; }
74 bool isFlagDone() {
return _flag & kObjFlagDone; }
75 bool isFlagExamine() {
return _flag & kObjFlagExamine; }
76 bool isFlagExtra() {
return _flag & kObjFlagExtra; }
77 bool isFlagPerson() {
return _flag & kObjFlagPerson; }
78 bool isFlagRoomIn() {
return _flag & kObjFlagRoomIn; }
79 bool isFlagRoomOut() {
return _flag & kObjFlagRoomOut; }
80 bool isFlagTake() {
return _flag & kObjFlagTake; }
81 bool isFlagUseWith() {
return _flag & kObjFlagUseWith; }
83 bool isModeHidden() {
return _mode & OBJMODE_HIDDEN; }
84 bool isModeFull() {
return _mode & OBJMODE_FULL; }
85 bool isModeMask() {
return _mode & OBJMODE_MASK; }
86 bool isModeLim() {
return _mode & OBJMODE_LIM; }
87 bool isModeStatus() {
return _mode & OBJMODE_OBJSTATUS; }
89 void setModeHidden(
bool on) {
if (on) _mode |= OBJMODE_HIDDEN;
else _mode &= ~OBJMODE_HIDDEN; }
90 void setModeFull(
bool on) {
if (on) _mode |= OBJMODE_FULL;
else _mode &= ~OBJMODE_FULL; }
91 void setModeMask(
bool on) {
if (on) _mode |= OBJMODE_MASK;
else _mode &= ~OBJMODE_MASK; }
92 void setModeLim(
bool on) {
if (on) _mode |= OBJMODE_LIM;
else _mode &= ~OBJMODE_LIM; }
93 void setModeStatus(
bool on) {
if (on) _mode |= OBJMODE_OBJSTATUS;
else _mode &= ~OBJMODE_OBJSTATUS; }
109 void setFlagExtra(
bool on) {
if (on) _flag |= kObjFlagExtra;
else _flag &= ~kObjFlagExtra; }
111 bool isFlagExtra() {
return _flag & kObjFlagExtra; }
112 bool isUseWith() {
return _flag & kObjFlagUseWith; }
129 #define SMKANIM_OFF_BASE 16 144 assert(area >= 1 && area <= 4);
146 _flag &= ~(SMKANIM_OFF_BASE << area);
148 _flag |= (SMKANIM_OFF_BASE << area);
157 assert(area >= 1 && area <= 4);
158 return !(_flag & (SMKANIM_OFF_BASE << area));
184 bool isEmptyEvent()
const {
return _class == 0 && _event == 0; }
204 int16 _dx, _dy, _angle;
208 void set(int16 x, int16 y, uint8 *buffer);
209 bool isActive() {
return _active; };
Definition: trecision.h:112
Definition: serializer.h:79
bool isAnimAreaShown(uint8 area)
Definition: struct.h:156
void toggleAnimArea(uint8 area, bool show)
Definition: struct.h:143
Definition: scheduler.h:55