22#ifndef SNATCHER_STATE_H
23#define SNATCHER_STATE_H
25#include "common/str.h"
26#include "common/rect.h"
27#include "common/scummsys.h"
29#include "snatcher/mem_mapping.h"
38 Config() : volumeMusic(0), volumeSFX(0), volumeSpeech(0), lightGunAvailable(1), useLightGun(0), controllerSetup(0), disableStereo(0), hasRAMCart(1), hasFreeBuram(1), lightGunBias(0, -16) {}
42 int16 lightGunAvailable;
44 int16 controllerSetup;
52 SaveInfo() : slotUsage(0), saveCount(0), act(0) {}
54 Slot() : playTime(0), numSaves(0), act(0), desc() {}
66 Script(uint32 textResourceOffset, int16 &chaptr) : sentenceDone(0), sentencePos(0), data(
nullptr), dataSize(0), curPos(0), newPos(0xFFFF), curFileNo(0), curGfxScript(-1), phase(chaptr), textResOffset(textResourceOffset) {}
70 const uint8 *getTextResource()
const {
71 return data + textResOffset;
82 const uint32 textResOffset;
85 Temp() : curFileNo(0), curPos(0) {
86 memset(arr4, 0,
sizeof(arr4));
95 GameState() : frameNo(0), frameState(0), modFinish(0), modPhaseTop(0), modPhaseSub(0), counter(0), modIndex(0), menuSelect(0), prologue(0),
96 pendingSaveLoad(0), phase(0), updateFlags(0), saveInfo(), conf(), script(MemMapping::MEM_SCRIPT_TEXT_LOCATION - MemMapping::MEM_SCRIPT_LOCATION, phase), totalPlayTime(0) {}
105 int16 pendingSaveLoad;
112 uint32 totalPlayTime;