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/dialogue.h"
31#include "harvester/inventory.h"
32#include "harvester/menu/menu.h"
33#include "harvester/scene/scene.h"
34#include "harvester/script/script.h"
56 const MenuTextConfig &getMenuTextConfig()
const {
return _menuTextConfig; }
57 const Common::Point &getMousePos()
const {
return _mousePos; }
58 uint getQuickTipCount()
const {
return _quickTips.
size(); }
59 const Common::String &getQuickTip(uint index)
const {
return _quickTips[index]; }
60 bool hasRoomNpcHandler(
const Common::String &npcName)
const {
return _dialogue.hasRoomNpcHandler(npcName); }
61 bool isNestedRoomLoop()
const {
return _roomLoopDepth > 1; }
67 void requestGameOverReturn();
69 bool hasQueuedDebugInteraction()
const {
return _hasQueuedDebugInteraction; }
71 bool requestDebugRoomChange(
const Common::String &roomName,
int discNumber);
74 Common::Error runHelpScreen(
const byte *palette,
float paletteBrightness);
76 float paletteBrightness,
bool canSaveGame);
88 Common::Error fadeInRoomScene(
const byte *palette,
float targetBrightness);
89 void resetCursorAnimationSequence();
90 bool tickRuntimeEntities();
95 void prepareForNewGame();
96 void requestNewGameRestart();
97 bool takePendingNewGameRestart();
98 bool takePendingGameOverReturn();
99 void requestMainMenuReturn();
100 bool hasPendingMainMenuReturn()
const;
101 bool takePendingMainMenuReturn();
102 void requestCloseupParentRestart();
103 bool takePendingCloseupParentRestart();
104 bool hasPendingDebugRoomChange()
const {
return !_pendingDebugRoomName.empty(); }
105 void resetRoomNpcDialogueState();
108 bool loadQuickTips();
109 bool loadMenuItems();
115 bool ensureCursorEntity();
116 Common::Error fadePalette(
const byte *palette,
float fromBrightness,
float toBrightness);
117 bool waitForPaletteFadeTick(uint32 startTick,
Common::Error &result);
119 bool hasPendingNewGameRestart()
const;
120 void clearPendingNewGameRestart();
121 bool hasPendingGameOverReturn()
const;
122 void clearPendingGameOverReturn();
123 void clearPendingMainMenuReturn();
124 bool hasPendingCloseupParentRestart()
const;
125 void clearPendingCloseupParentRestart();
139 bool _hasQueuedDialogueInteraction =
false;
141 bool _hasQueuedDebugInteraction =
false;
142 bool _pendingNewGameRestart =
false;
143 bool _pendingGameOverReturn =
false;
144 bool _pendingMainMenuReturn =
false;
145 bool _pendingCloseupParentRestart =
false;
147 int _pendingDebugRoomDisc = 0;
148 uint _roomLoopDepth = 0;
149 uint32 _roomSetupTransitionShownTick = 0;
size_type size() const
Definition: array.h:316
Definition: dialogue.h:44
Definition: harvester.h:47
Definition: inventory.h:54
Definition: algorithm.h:29
Definition: room_support.h:57
Definition: room_support.h:46