22 #ifndef HARVESTER_FLOW_H 23 #define HARVESTER_FLOW_H 25 #include "common/array.h" 26 #include "common/error.h" 27 #include "common/rect.h" 28 #include "common/str.h" 29 #include "harvester/cheats.h" 30 #include "harvester/dialogue.h" 31 #include "harvester/inventory.h" 32 #include "harvester/menu.h" 33 #include "harvester/room.h" 34 #include "harvester/script.h" 42 class HarvesterEngine;
43 class DialogueFlowAccess;
44 class RoomInteractionProcessor;
58 friend class DialogueFlowAccess;
72 float paletteBrightness,
bool canSaveGame);
78 bool ensureCursorEntity();
84 Common::Error fadeInRoomScene(
const byte *palette,
float targetBrightness);
85 Common::Error fadePalette(
const byte *palette,
float fromBrightness,
float toBrightness);
90 bool hasQueuedDebugInteraction()
const {
return _hasQueuedDebugInteraction; }
93 void prepareForNewGame();
94 void requestNewGameRestart();
95 bool hasPendingNewGameRestart()
const;
96 bool takePendingNewGameRestart();
97 void clearPendingNewGameRestart();
98 void requestGameOverReturn();
99 bool hasPendingGameOverReturn()
const;
100 bool takePendingGameOverReturn();
101 void clearPendingGameOverReturn();
102 void requestMainMenuReturn();
103 bool hasPendingMainMenuReturn()
const;
104 bool takePendingMainMenuReturn();
105 void clearPendingMainMenuReturn();
106 void requestCloseupParentRestart();
107 bool hasPendingCloseupParentRestart()
const;
108 bool takePendingCloseupParentRestart();
109 void clearPendingCloseupParentRestart();
111 bool hasPendingDebugRoomChange()
const {
return !_pendingDebugRoomName.empty(); }
113 void resetRoomNpcDialogueState();
114 void resetCursorAnimationSequence();
115 bool tickRuntimeEntities();
129 bool _hasQueuedDialogueInteraction =
false;
131 bool _hasQueuedDebugInteraction =
false;
132 bool _pendingNewGameRestart =
false;
133 bool _pendingGameOverReturn =
false;
134 bool _pendingMainMenuReturn =
false;
135 bool _pendingCloseupParentRestart =
false;
137 uint _roomLoopDepth = 0;
138 uint32 _roomSetupTransitionShownTick = 0;
143 #endif // HARVESTER_FLOW_H
Definition: dialogue.h:44
Definition: room_interaction.h:56
Definition: inventory.h:54
Definition: algorithm.h:29
Definition: harvester.h:47