22#ifndef TOLTECS_TOLTECS_H
23#define TOLTECS_TOLTECS_H
25#include "common/scummsys.h"
26#include "common/endian.h"
27#include "common/events.h"
28#include "common/file.h"
29#include "common/keyboard.h"
30#include "common/random.h"
31#include "common/textconsole.h"
33#include "engines/engine.h"
35#include "graphics/surface.h"
37#include "gui/debugger.h"
39#include "toltecs/console.h"
43struct ToltecsGameDescription;
53class ScriptInterpreter;
59 kStrLoadingPleaseWait,
119 uint32 getFeatures()
const;
124 void setupSysStrings();
126 void requestLoadgame(
int slotNum);
128 void loadScene(uint resIndex);
134 void setGuiHeight(int16 guiHeight);
136 void setCamera(int16 x, int16 y);
137 bool getCameraChanged();
138 void scrollCameraUp(int16 delta);
139 void scrollCameraDown(int16 delta);
140 void scrollCameraLeft(int16 delta);
141 void scrollCameraRight(int16 delta);
144 void showMenu(MenuID menuId);
146 void talk(int16 slotIndex, int16 slotOffset);
148 void walk(
byte *walkData);
150 int16 findRectAtPoint(
byte *rectData, int16 x, int16 y, int16 index, int16 itemSize,
153 int _cfgVoicesVolume, _cfgMusicVolume, _cfgSoundFXVolume;
154 bool _cfgText, _cfgVoices;
172 int _saveLoadRequested;
177 int16 _sceneWidth, _sceneHeight;
179 int _counter01, _counter02;
180 bool _movieSceneFlag;
183 int16 _cameraX, _cameraY;
184 int16 _newCameraX, _newCameraY;
188 bool _doSpeech, _doText;
190 int16 _walkSpeedY, _walkSpeedX;
193 int16 _mouseX, _mouseY;
194 int16 _mouseDblClickTicks;
195 bool _mouseWaitForRelease;
197 int16 _mouseDisabled;
198 bool _leftButtonDown, _rightButtonDown;
200 const char *getSysString(
int index)
const {
return _sysStrings[index].c_str(); }
204 enum kReadSaveHeaderError {
206 kRSHEInvalidType = 1,
207 kRSHEInvalidVersion = 2,
228 void savegame(
const char *filename,
const char *description);
229 void loadgame(
const char *filename);
231 const char *getSavegameFilename(
int num);
const Common::String _targetName
Definition: engine.h:186
EngineFeature
Definition: engine.h:282
Definition: atari-screen.h:42
Definition: animation.h:30
Definition: resource.h:37
Definition: resource.h:63
Definition: toltecs.h:104
Common::Error loadGameState(int slot) override
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: toltecs.h:225
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: toltecs.h:224
Common::Error run() override
void syncSoundSettings() override
Common::Error saveGameState(int slot, const Common::String &description, bool isAutosave=false) override
bool hasFeature(EngineFeature f) const override
uint32 CustomEventType
Definition: events.h:212
Language
Definition: language.h:45
bool skipThumbnail(Common::SeekableReadStream &in)
Definition: atari-screen.h:58
Definition: detection.h:27