22 #ifndef HARVESTER_ROOM_SUPPORT_H 23 #define HARVESTER_ROOM_SUPPORT_H 25 #include "common/array.h" 26 #include "common/rect.h" 27 #include "common/scummsys.h" 28 #include "common/str.h" 29 #include "harvester/script.h" 38 class HarvesterEngine;
39 class ResourceManager;
47 byte palette[256 * 3] = { 0 };
51 float targetPaletteBrightness = 1.0f;
61 int combatLoadout = 0;
62 uint32 nextMovementTick = 0;
63 bool hasMoveTarget =
false;
65 int targetBottomY = 0;
67 bool moveTargetRequiresScreenY =
false;
68 bool moveTargetXReached =
false;
69 bool moveTargetZReached =
false;
78 bool turnActive =
false;
79 int turnTargetFacing = -1;
80 int turnFirstFrame = -1;
81 int turnLastFrame = -1;
82 int turnEndFrame = -1;
83 bool turnPlayBackwards =
false;
84 bool attackActive =
false;
85 int attackFirstFrame = -1;
86 int attackLastFrame = -1;
87 int attackContactFrame = -1;
88 int attackResumeFacing = -1;
89 bool attackSoundPlayed =
false;
90 int attackSoundPlaybackFrame = -1;
91 bool attackContactResolved =
false;
95 int attackTargetClassId = -1;
96 bool hitActive =
false;
97 int hitFirstFrame = -1;
98 int hitLastFrame = -1;
99 int hitResumeFacing = -1;
100 int hitKnockbackRemainingX = 0;
101 int hitKnockbackDecayStep = 0;
102 bool deathActive =
false;
103 int deathFirstFrame = -1;
104 int deathLastFrame = -1;
105 int deathDamageType = 0;
112 const Entity *playerEntity =
nullptr;
114 int cursorSequence = 7;
119 int restoreFacing = -1;
120 uint32 activityTick = 0;
121 uint32 resetTick = 0;
122 uint32 triggerTick = 0;
124 bool loopStarted =
false;
125 bool exiting =
false;
129 int centerX,
int bottomY,
float z,
const Common::String *entranceName =
nullptr);
130 void logScenePaletteSummary(
const char *label,
const RoomSceneResources &scene,
float brightness);
133 bool shouldDisplaySceneAnimation(
const AnimRecord &anim);
135 bool shouldRunStartupRoomProbe();
147 bool unlocksRoomObjectInteractionAfterInitialExamine(
const ObjectRecord &
object,
149 bool doesPlayerFacingMatchRegion(
int playerFacing,
const RegionRecord ®ion);
161 #endif // HARVESTER_ROOM_SUPPORT_H
Definition: dialogue.h:44
Definition: room_support.h:45
Definition: room_support.h:54
Definition: room_support.h:108
Definition: atari-screen.h:58
Definition: runtime_entity.h:64
Definition: room_support.h:117
Definition: formatinfo.h:28
Definition: resources.h:32
Definition: harvester.h:47