23#ifndef HADESCH_HADESCH_H
24#define HADESCH_HADESCH_H
26#include "common/random.h"
27#include "common/stream.h"
28#include "common/savefile.h"
29#include "common/list.h"
31#include "engines/engine.h"
32#include "engines/savestate.h"
34#include "gui/debugger.h"
35#include "graphics/cursor.h"
36#include "hadesch/pod_file.h"
37#include "hadesch/video.h"
38#include "hadesch/enums.h"
39#include "hadesch/event.h"
40#include "hadesch/herobelt.h"
41#include "hadesch/persistent.h"
48class SeekableReadStream;
50class TranslationManager;
66 virtual bool handleClickWithItem(
const Common::String &name, InventoryItem item) {
69 virtual void handleEvent(
int eventId) = 0;
72 virtual void frameCallback() {}
73 virtual void handleKeypress(uint32 ucode) {}
74 virtual void prepareRoom() = 0;
129 void moveToRoom(RoomId
id) {
131 _heroBelt->clearHold();
135 int32 getCurrentTime() {
140 void addTimer(EventHandlerWrapper event,
int period,
int repeat = 1);
141 void addSkippableTimer(EventHandlerWrapper event,
int period,
int repeat = 1);
142 void cancelTimer(
int eventId);
148 RoomId getPreviousRoomId()
const {
149 return _persistent._previousRoomId;
152 bool isRoomVisited(RoomId
id)
const {
153 return _persistent._roomVisited[id];
156 Persistent *getPersistent() {
166 int firstAvailableSlot();
170 void resetOptionsRoom();
172 void enterOptionsCredits();
177 void deleteSave(
int slot);
179 uint32 getSubtitleDelayPerChar()
const;
182 void fallbackClick();
185 void addTimer(EventHandlerWrapper event, int32 start_time,
int period,
186 int repeat,
bool skippable);
187 void moveToRoomReal(RoomId
id);
199 EventHandlerWrapper event;
213 uint32 _optionsEnterTime;
214 uint32 _sceneStartTime;
225 Persistent _persistent;
230 int _subtitleDelayPerChar;
231 int _lastFallbackSound;
233#ifdef USE_TRANSLATION
242extern HadeschEngine *g_vm;
void push_back(const T &element)
Definition: array.h:181
Definition: noncopyable.h:39
Definition: translation.h:87
EngineFeature
Definition: engine.h:293
Definition: hadesch.h:107
Common::Error run() override
bool hasFeature(EngineFeature f) const override
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: hadesch.h:117
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: hadesch.h:116
Common::Error loadGameStream(Common::SeekableReadStream *stream) override
Common::Error saveGameStream(Common::WriteStream *stream, bool isAutosave=false) override
ErrorCode
Definition: error.h:47
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: advancedDetector.h:164