22 #ifndef MYST_SAVELOAD_H 23 #define MYST_SAVELOAD_H 25 #include "common/savefile.h" 26 #include "common/file.h" 27 #include "common/str.h" 29 #include "engines/savestate.h" 37 class MohawkEngine_Myst;
61 kBlueSeleniticPage = 2,
62 kBlueMechanicalPage = 3,
63 kBlueStoneshipPage = 4,
64 kBlueChannelwoodPage = 5,
65 kBlueFirePlacePage = 6,
67 kRedSeleniticPage = 8,
68 kRedMechanicalPage = 9,
69 kRedStoneshipPage = 10,
70 kRedChannelwoodPage = 11,
71 kRedFirePlacePage = 12,
102 static const int kAutoSaveSlot;
113 static bool deleteSave(
int slot);
115 void addZipDest(MystStack stack, uint16 view);
116 bool isReachableZipDest(MystStack stack, uint16 view);
130 ActiveAge currentAge;
135 uint16 redPagesInBook;
136 uint16 bluePagesInBook;
193 uint32 cabinMarkerSwitch;
194 uint32 clockTowerMarkerSwitch;
195 uint32 dockMarkerSwitch;
196 uint32 poolMarkerSwitch;
197 uint32 gearsMarkerSwitch;
198 uint32 generatorMarkerSwitch;
199 uint32 observatoryMarkerSwitch;
200 uint32 rocketshipMarkerSwitch;
201 uint16 greenBookOpenedBefore;
203 uint16 cabinValvePosition;
204 uint16 clockTowerHourPosition;
205 uint16 clockTowerMinutePosition;
207 uint16 clockTowerBridgeOpen;
208 uint16 generatorBreakers;
209 uint16 generatorButtons;
210 uint16 generatorVoltage;
211 uint16 libraryBookcaseDoor;
212 uint16 imagerSelection;
214 uint16 imagerWaterErased;
215 uint16 imagerMountainErased;
216 uint16 imagerAtrusErased;
217 uint16 imagerMarkerErased;
218 uint16 towerRotationAngle;
219 uint16 courtyardImageBoxes;
220 uint16 cabinPilotLightLit;
221 uint16 observatoryDaySetting;
222 uint16 observatoryLights;
223 uint16 observatoryMonthSetting;
224 uint16 observatoryTimeSetting;
225 uint16 observatoryYearSetting;
226 uint16 observatoryDayTarget;
227 uint16 observatoryMonthTarget;
228 uint16 observatoryTimeTarget;
229 uint16 observatoryYearTarget;
230 uint16 cabinSafeCombination;
232 uint32 treeLastMoveTime;
233 uint16 rocketSliderPosition[5];
234 uint16 observatoryDaySlider;
235 uint16 observatoryMonthSlider;
236 uint16 observatoryYearSlider;
237 uint16 observatoryTimeSlider;
250 uint32 waterPumpBridgeState;
251 uint32 elevatorState;
252 uint32 stairsLowerDoorState;
254 uint16 waterValveStates;
255 uint16 holoprojectorSelection;
256 uint16 stairsUpperDoorState;
270 uint32 achenarCrateOpened;
271 uint16 achenarPanelState;
272 uint16 sirrusPanelState;
273 uint16 staircaseState;
274 uint16 elevatorRotation;
299 uint32 emitterEnabledWater;
300 uint32 emitterEnabledVolcano;
301 uint32 emitterEnabledClock;
302 uint32 emitterEnabledCrystal;
303 uint32 emitterEnabledWind;
304 uint32 soundReceiverOpened;
305 uint32 tunnelLightsSwitchedOn;
306 uint16 soundReceiverCurrentSource;
307 uint16 soundReceiverPositions[5];
308 uint16 soundLockSliderPositions[5];
326 uint16 sideDoorOpened;
328 uint16 trapdoorState;
329 uint16 chestWaterState;
330 uint16 chestValveState;
331 uint16 chestOpenState;
332 uint16 trapdoorKeyState;
333 uint32 generatorDuration;
334 uint16 generatorPowerAvailable;
335 uint32 generatorDepletionTime;
344 bool loadState(
int slot);
345 void loadMetadata(
int slot);
346 bool saveState(
int slot);
347 void updateMetadateForSaving(
const Common::String &desc,
bool autoSave);
353 typedef uint16 ZipDests[41];
355 ZipDests _mystReachableZipDests;
357 ZipDests _channelwoodReachableZipDests;
359 ZipDests _mechReachableZipDests;
361 ZipDests _seleniticReachableZipDests;
363 ZipDests _stoneshipReachableZipDests;
Definition: myst_state.h:298
Definition: myst_state.h:128
Definition: myst_state.h:324
Definition: serializer.h:79
Definition: savestate.h:56
Definition: algorithm.h:29
Definition: myst_state.h:269
Definition: savefile.h:142
Definition: myst_state.h:249
Definition: myst_state.h:100
Definition: myst_state.h:192