|
|
char | _name [MAX_NAME_LENGTH+1] = {} |
| |
|
Sex | _sex = SEX_MALE |
| |
|
Race | _race = RACE_HUMAN |
| |
|
CharClass | _class = CLASS_FIGHTER |
| |
|
int16 | _strength = 0 |
| |
|
int16 | _agility = 0 |
| |
|
int16 | _stamina = 0 |
| |
|
int16 | _charisma = 0 |
| |
|
int16 | _wisdom = 0 |
| |
|
int16 | _intelligence = 0 |
| |
|
int16 | _hp = 0 |
| |
|
int16 | _food = 0 |
| |
|
int16 | _foodTurnCtr = 0 |
| |
|
int16 | _experience = 0 |
| |
|
int16 | _gold = 0 |
| |
|
byte | _mapEra = 0 |
| |
|
byte | _mapType = 0 |
| |
|
byte | _mapX = 0 |
| |
|
byte | _mapY = 0 |
| |
|
byte | _overworldReturnX = 0 |
| |
|
byte | _overworldReturnY = 0 |
| |
|
byte | _dungeonLevel = 0 |
| |
|
int8 | _facingX = 1 |
| |
|
int8 | _facingY = 0 |
| |
|
byte | _mount = 0 |
| |
|
WeaponType | _readiedWeapon = WEAPON_HANDS |
| |
|
ArmorType | _readiedArmor = ARMOR_SKIN |
| |
|
SpellType | _readiedSpell = SPELL_NONE |
| |
|
int16 | _torches = 0 |
| |
|
int16 | _keys = 0 |
| |
|
int16 | _thievesTools = 0 |
| |
|
bool | _inSpace = false |
| |
|
byte | _launchMapX = 0 |
| |
|
byte | _launchMapY = 0 |
| |
|
int16 | _orbitTarget = 0 |
| |
|
byte | _hyperwarpCoords [3] = {} |
| |
|
bool | _inFlight = false |
| |
|
bool | _ringQuestFlag = false |
| |
|
bool | _enilnoOwned = false |
| |
|
byte | _moongateWaypoint = 0 |
| |
|
byte | _moongateTimer = 0 |
| |
|
byte | _moongateTerrain = 0 |
| |
|
byte | _offerRewardItems [9] = {} |
| |
|
int16 | _armorOwned [ARMOR_COUNT] = {} |
| |
|
int16 | _weaponOwned [WEAPON_COUNT] = {} |
| |
|
int16 | _spellCharges [SPELL_COUNT] = {} |
| |
|
int16 | _items [ITEM_COUNT] = {} |
| |
|
int16 | _legParalysisTurns = 0 |
| |
|
int16 | _armParalysisTurns = 0 |
| |
|
int16 | _sleepTurns = 0 |
| |
|
int16 | _negateTimeTurns = 0 |
| |
|
int16 | _lightTurns = 0 |
| |
|
byte | _monsterSpawnCounter = 0 |
| |
The player character's savegame data
Replaces the character with one imported from the original DOS game's binary PLAYER file format (its first 256 bytes; real files on disk have a 128-byte stale duplicate tail, same as the monx and tlkx files, which is ignored here). Returns false if the stream is too short to be a real PLAYER file.
Debug/testing use only, via the "load" console command. Fields ScummVM's own save format added that the original never had (dungeon position, moongate timer, hyperwarp coordinates, the mid-flight flag, ...) are reset to their defaults, since there's nothing in the file to recover them from - a character saved by the original is also always standing on a map (villages/towns/ castles auto-save too), never mid-dungeon-corridor or mid-flight.