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/script.h"
58 bool isEuropeanRelease()
const;
60 uint32 getRandomNumber(uint maxNum) {
73 EntityManager *getRuntimeEntities()
const;
75 int getDisplayWidth()
const;
76 int getDisplayHeight()
const;
77 Script *getScript()
const {
return _script; }
79 Text *getText()
const;
80 void setDisplayMode(
int width,
int height);
81 bool isGoreEnabled()
const;
82 bool shouldShowCdChangePrompts()
const;
83 int getFxVolumeLevel()
const;
84 int getMusicVolumeLevel()
const;
85 int getGammaLevel()
const;
86 float getGammaBrightnessScale()
const;
87 void setFxVolumeLevel(
int level);
88 void setMusicVolumeLevel(
int level);
89 void setGammaLevel(
int level);
91 bool isMusicPlaying()
const;
93 void pauseMusic(
bool paused);
95 bool executeAudioCommand(
const AudioCommand &command);
98 void stopSingleSound();
99 bool isSingleSoundPlaying()
const;
102 bool isSpeechPlaying()
const;
104 bool playLoadedSound(
int slot);
105 bool deleteLoadedSound(
int slot);
107 bool activateDisc(
int discNumber);
108 bool isCombatDebugEnabled()
const {
return _combatDebugEnabled; }
109 bool toggleCombatDebugEnabled();
110 bool isRoomDebugEnabled()
const {
return _roomDebugEnabled; }
111 bool toggleRoomDebugEnabled();
112 bool isPathfindingDebugEnabled()
const {
return _pathfindingDebugEnabled; }
113 bool togglePathfindingDebugEnabled();
114 bool isTimerDebugEnabled()
const {
return _timerDebugEnabled; }
115 bool toggleTimerDebugEnabled();
116 bool requestDebugCommand(
const CommandRecord &command);
117 bool requestDebugRoomChange(
const Common::String &roomName,
int discNumber);
118 void captureCurrentSaveRoomState(
const Common::String &entranceName,
119 const Common::String &roomName,
int playerX,
int playerY,
int playerZ,
120 int playerFacing,
int discNumber,
const Common::String &musicPath);
121 void clearCurrentSaveRoomState();
122 bool hasCurrentSaveRoomState()
const {
return _currentSaveRoomState.valid; }
123 const SaveRoomState &getCurrentSaveRoomState()
const {
124 return _currentSaveRoomState;
126 bool hasPendingLoadedSaveRoomState()
const {
return _pendingLoadedSaveRoomState.valid; }
127 const SaveRoomState &getPendingLoadedSaveRoomState()
const {
128 return _pendingLoadedSaveRoomState;
130 int getPendingLoadedDisc()
const {
return _pendingLoadedDisc; }
131 void clearPendingLoadedSaveRoomState();
132 bool hasPendingLoadedDialogueStateBlob()
const {
return !_pendingLoadedDialogueStateBlob.
empty(); }
133 const Common::Array<byte> &getPendingLoadedDialogueStateBlob()
const {
return _pendingLoadedDialogueStateBlob; }
134 uint32 getPendingLoadedDialogueStateBlobVersion()
const {
return _pendingLoadedDialogueStateBlobVersion; }
135 void clearPendingLoadedDialogueStateBlob() {
136 _pendingLoadedDialogueStateBlob.
clear();
137 _pendingLoadedDialogueStateBlobVersion = 0;
141 void applyMixerLevels();
145 ResourceManager *_resources =
nullptr;
146 MediaManager *_media =
nullptr;
147 Script *_script =
nullptr;
148 SaveRoomState _currentSaveRoomState;
149 SaveRoomState _pendingLoadedSaveRoomState;
150 int _pendingLoadedDisc = 0;
152 uint32 _pendingLoadedDialogueStateBlobVersion = 0;
153 Flow *_activeFlow =
nullptr;
154 bool _combatDebugEnabled =
false;
155 bool _roomDebugEnabled =
false;
156 bool _pathfindingDebugEnabled =
false;
157 bool _timerDebugEnabled =
false;
165#define SHOULD_QUIT ::Harvester::g_engine->shouldQuit()
void clear()
Definition: array.h:321
bool empty() const
Definition: array.h:352
uint getRandomNumber(uint max)
Definition: serializer.h:80
EngineFeature
Definition: engine.h:282
Definition: harvester.h:47
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
bool hasFeature(EngineFeature f) const override
Common::Error saveGameStream(Common::WriteStream *stream, bool isAutosave=false) override
Common::Error loadGameStream(Common::SeekableReadStream *stream) override
Common::Error run() override
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: resources.h:32
Language
Definition: language.h:45
Definition: advancedDetector.h:164