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" 43 struct ToltecsGameDescription;
45 class AnimationPlayer;
53 class ScriptInterpreter;
59 kStrLoadingPleaseWait,
109 uint32 getFeatures()
const;
114 void setupSysStrings();
116 void requestLoadgame(
int slotNum);
118 void loadScene(uint resIndex);
124 void setGuiHeight(int16 guiHeight);
126 void setCamera(int16 x, int16 y);
127 bool getCameraChanged();
128 void scrollCameraUp(int16 delta);
129 void scrollCameraDown(int16 delta);
130 void scrollCameraLeft(int16 delta);
131 void scrollCameraRight(int16 delta);
134 void showMenu(MenuID menuId);
136 void talk(int16 slotIndex, int16 slotOffset);
138 void walk(byte *walkData);
140 int16 findRectAtPoint(byte *rectData, int16 x, int16 y, int16 index, int16 itemSize,
143 int _cfgVoicesVolume, _cfgMusicVolume, _cfgSoundFXVolume;
144 bool _cfgText, _cfgVoices;
162 int _saveLoadRequested;
167 int16 _sceneWidth, _sceneHeight;
169 int _counter01, _counter02;
170 bool _movieSceneFlag;
173 int16 _cameraX, _cameraY;
174 int16 _newCameraX, _newCameraY;
178 bool _doSpeech, _doText;
180 int16 _walkSpeedY, _walkSpeedX;
183 int16 _mouseX, _mouseY;
184 int16 _mouseDblClickTicks;
185 bool _mouseWaitForRelease;
187 int16 _mouseDisabled;
188 bool _leftButtonDown, _rightButtonDown;
190 const char *getSysString(
int index)
const {
return _sysStrings[index].c_str(); }
194 enum kReadSaveHeaderError {
196 kRSHEInvalidType = 1,
197 kRSHEInvalidVersion = 2,
218 void savegame(
const char *filename,
const char *description);
219 void loadgame(
const char *filename);
221 const char *getSavegameFilename(
int num);
Definition: animation.h:28
EngineFeature
Definition: engine.h:253
void syncSoundSettings() override
Common::Error saveGameState(int slot, const Common::String &description, bool isAutosave=false) override
Definition: resource.h:37
Definition: atari-screen.h:60
Definition: resource.h:63
Common::Error loadGameState(int slot) override
bool hasFeature(EngineFeature f) const override
bool skipThumbnail(Common::SeekableReadStream &in)
const Common::String _targetName
Definition: engine.h:181
Common::Error run() override
Definition: animation.h:30
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: toltecs.h:215
Definition: keyboard.h:294
Definition: detection.h:27
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: toltecs.h:214
Language
Definition: language.h:45
Definition: atari-screen.h:44