sramfile.hh File Reference

#include <utility>
#include "exception/invalidsramfileexception.hh"

Go to the source code of this file.

Namespaces

namespace  dwsrame

Classes

class  dwsrame::SRAMFile
 class to interface with an SRAM file More...

Enumerations

enum  dwsrame::dw_armor {
  dwsrame::DW_NOARMOR, dwsrame::DW_CLOTHES = 0x4, dwsrame::DW_LEATHERARMOR = 0x8, dwsrame::DW_CHAINMAIL = 0xC,
  dwsrame::DW_HALFPLATE = 0x10, dwsrame::DW_FULLPLATE = 0x14, dwsrame::DW_MAGICARMOR = 0x18, dwsrame::DW_ERDRICKSARMOR = 0x1C
}
 the armors More...
enum  dwsrame::dw_item {
  dwsrame::DW_NOITEM, dwsrame::DW_TORCH, dwsrame::DW_FAIRYWATER, dwsrame::DW_WINGS,
  dwsrame::DW_DRAGONSSCALE, dwsrame::DW_FAIRYFLUTE, dwsrame::DW_FIGHTERSRING, dwsrame::DW_ERDRICKSTOKEN,
  dwsrame::DW_GWAELINSLOVE, dwsrame::DW_CURSEDBELT, dwsrame::DW_SILVERHARP, dwsrame::DW_DEATHNECKLACE,
  dwsrame::DW_STONESOFSUNLIGHT, dwsrame::DW_STAFFOFRAIN, dwsrame::DW_RAINBOWDROP
}
 the items More...
enum  dwsrame::dw_quest {
  dwsrame::DW_HIDDENSTAIRS, dwsrame::DW_RAINBOWBRIDGE, dwsrame::DW_USINGDRAGONSSCALE, dwsrame::DW_USINGFIGHTERSRING,
  dwsrame::DW_USINGCURSEDBELT, dwsrame::DW_USINGDEATHNECKLACE, dwsrame::DW_HOLDINGGWAELIN, dwsrame::DW_GWAELINONTHRONE,
  dwsrame::DW_LORIKSCHAMBER, dwsrame::DW_GOLEMDEAD, dwsrame::DW_DRAGONLORDDEAD, dwsrame::DW_GREENDRAGONDEAD
}
 the quest markers More...
enum  dwsrame::dw_shield { dwsrame::DW_NOSHIELD, dwsrame::DW_SMALLSHIELD, dwsrame::DW_LARGESHIELD, dwsrame::DW_SILVERSHIELD }
 the shields More...
enum  dwsrame::dw_weapon {
  dwsrame::DW_NOWEAPON, dwsrame::DW_BAMBOOPOLE = 0x20, dwsrame::DW_CLUB = 0x40, dwsrame::DW_COPPERSWORD = 0x60,
  dwsrame::DW_HANDAXE = 0x80, dwsrame::DW_BROADSWORD = 0xA0, dwsrame::DW_FLAMESWORD = 0xC0, dwsrame::DW_ERDRICKSSWORD = 0xE0
}
 the weapons More...

Variables

const int dwsrame::ARMOR_MASK = 0x1C
 the armor bits of the equipment byte
const int dwsrame::CHECKSUM_OFFSET = 0x1E
 the checksum offset
const int dwsrame::EQUIPMENT_OFFSET = 0xA
 the equipment offset
const int dwsrame::EXP_OFFSET = 0x0
 the experience offset
const int dwsrame::GAME_OFFSET = 0x68
 the starting offset of the games
const int dwsrame::GAME_SIZE = 0x140
 the size of a save game
const int dwsrame::GOLD_OFFSET = 0x2
 the gold offset
const int dwsrame::HERBS_OFFSET = 0x9
 the medical herbs offset
const int dwsrame::HP_OFFSET = 0x17
 the hit points offset
const int dwsrame::ITEM_OFFSET = 0x4
 the starting item offset
const int dwsrame::KENMASUTA_OFFSET = 0x3B
 the offset of the KEN MASUTA string
const int dwsrame::KEYS_OFFSET = 0x8
 the magic keys offset
const char dwsrame::MAGIC_NUMBER = '\xC8'
 the magic number appears many times in the SRAM
const int dwsrame::MP_OFFSET = 0x18
 the magic points offset
const int dwsrame::NAME_OFFSET = 0xE
 the name offset
const int dwsrame::SHIELD_MASK = 0x3
 the shield bits of the equipment byte
const int dwsrame::SLOT_OFFSET = 0x35
 the starting offset of the game slot usage bytes
const int dwsrame::SRAM_SIZE = 0x2000
 the size of an SRAM file
const int dwsrame::WEAPON_MASK = 0xE0
 the weapon bits of the equipment byte


Generated on Mon Dec 29 00:46:09 2008 for Dragon Warrior SRAM Editor by  doxygen 1.5.4