25 #include "common/array.h" 26 #include "audio/mixer.h" 27 #include "common/error.h" 28 #include "common/random.h" 29 #include "common/serializer.h" 30 #include "engines/engine.h" 31 #include "graphics/screen.h" 32 #include "harvester/saveload.h" 33 #include "harvester/script.h" 39 class ResourceManager;
83 int getDisplayWidth()
const;
84 int getDisplayHeight()
const;
85 Script *getScript()
const {
return _script; }
87 Text *getText()
const;
88 void setDisplayMode(
int width,
int height);
89 bool isGoreEnabled()
const;
90 bool shouldShowCdChangePrompts()
const;
91 int getFxVolumeLevel()
const;
92 int getMusicVolumeLevel()
const;
93 int getGammaLevel()
const;
94 float getGammaBrightnessScale()
const;
95 void setFxVolumeLevel(
int level);
96 void setMusicVolumeLevel(
int level);
97 void setGammaLevel(
int level);
99 bool isMusicPlaying()
const;
101 void pauseMusic(
bool paused);
106 void stopSingleSound();
107 bool isSingleSoundPlaying()
const;
110 bool isSpeechPlaying()
const;
112 bool playLoadedSound(
int slot);
113 bool deleteLoadedSound(
int slot);
115 bool activateDisc(
int discNumber);
116 bool isCombatDebugEnabled()
const {
return _combatDebugEnabled; }
117 bool toggleCombatDebugEnabled();
118 bool isRoomDebugEnabled()
const {
return _roomDebugEnabled; }
119 bool toggleRoomDebugEnabled();
120 bool isPathfindingDebugEnabled()
const {
return _pathfindingDebugEnabled; }
121 bool togglePathfindingDebugEnabled();
122 bool isTimerDebugEnabled()
const {
return _timerDebugEnabled; }
123 bool toggleTimerDebugEnabled();
126 void captureCurrentSaveRoomState(
const Common::String &entranceName,
127 const Common::String &roomName,
int playerX,
int playerY,
int playerZ,
128 int playerFacing,
int discNumber,
const Common::String &musicPath);
129 void clearCurrentSaveRoomState();
130 bool hasCurrentSaveRoomState()
const {
return _currentSaveRoomState.valid; }
132 return _currentSaveRoomState;
134 bool hasPendingLoadedSaveRoomState()
const {
return _pendingLoadedSaveRoomState.valid; }
136 return _pendingLoadedSaveRoomState;
138 int getPendingLoadedDisc()
const {
return _pendingLoadedDisc; }
139 void clearPendingLoadedSaveRoomState();
140 bool hasPendingLoadedDialogueStateBlob()
const {
return !_pendingLoadedDialogueStateBlob.
empty(); }
141 const Common::Array<byte> &getPendingLoadedDialogueStateBlob()
const {
return _pendingLoadedDialogueStateBlob; }
142 uint32 getPendingLoadedDialogueStateBlobVersion()
const {
return _pendingLoadedDialogueStateBlobVersion; }
143 void clearPendingLoadedDialogueStateBlob() {
144 _pendingLoadedDialogueStateBlob.
clear();
145 _pendingLoadedDialogueStateBlobVersion = 0;
149 void applyMixerLevels();
155 Script *_script =
nullptr;
158 int _pendingLoadedDisc = 0;
160 uint32 _pendingLoadedDialogueStateBlobVersion = 0;
161 Flow *_activeFlow =
nullptr;
162 bool _combatDebugEnabled =
false;
163 bool _roomDebugEnabled =
false;
164 bool _pathfindingDebugEnabled =
false;
165 bool _timerDebugEnabled =
false;
173 #define SHOULD_QUIT ::Harvester::g_engine->shouldQuit() 177 #endif // HARVESTER_H
Definition: saveload.h:29
EngineFeature
Definition: engine.h:282
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: advancedDetector.h:164
void clear()
Definition: array.h:321
bool hasFeature(EngineFeature f) const override
uint getRandomNumber(uint max)
Common::Error run() override
Definition: serializer.h:80
Common::Error syncGame(Common::Serializer &s)
Definition: runtime_entity.h:180
bool empty() const
Definition: array.h:352
Common::String getGameId() const
Common::Error saveGameStream(Common::WriteStream *stream, bool isAutosave=false) override
Definition: resources.h:32
Definition: harvester.h:47
uint32 getRandomNumber(uint maxNum)
Definition: harvester.h:64
Common::Error loadGameStream(Common::SeekableReadStream *stream) override