Classes | |
class | dwsrameApp |
The main application class. More... | |
class | InvalidSRAMFileException |
exception thrown when an invalid SRAM file is detected More... | |
class | SRAMFile |
class to interface with an SRAM file More... | |
class | MainFrame |
The main frame for the application. More... | |
class | SRAMFileTarget |
Class to implement a drop target for SRAM files. More... | |
Enumerations | |
enum | isfe_error { ISFE_FILENOTFOUND, ISFE_INVALIDSIZE, ISFE_NOVALIDGAMES } |
The possible InvalidSRAMFileException error codes. More... | |
enum | dw_armor { DW_NOARMOR, DW_CLOTHES = 0x4, DW_LEATHERARMOR = 0x8, DW_CHAINMAIL = 0xC, DW_HALFPLATE = 0x10, DW_FULLPLATE = 0x14, DW_MAGICARMOR = 0x18, DW_ERDRICKSARMOR = 0x1C } |
the armors More... | |
enum | dw_item { DW_NOITEM, DW_TORCH, DW_FAIRYWATER, DW_WINGS, DW_DRAGONSSCALE, DW_FAIRYFLUTE, DW_FIGHTERSRING, DW_ERDRICKSTOKEN, DW_GWAELINSLOVE, DW_CURSEDBELT, DW_SILVERHARP, DW_DEATHNECKLACE, DW_STONESOFSUNLIGHT, DW_STAFFOFRAIN, DW_RAINBOWDROP } |
the items More... | |
enum | dw_quest { DW_HIDDENSTAIRS, DW_RAINBOWBRIDGE, DW_USINGDRAGONSSCALE, DW_USINGFIGHTERSRING, DW_USINGCURSEDBELT, DW_USINGDEATHNECKLACE, DW_HOLDINGGWAELIN, DW_GWAELINONTHRONE, DW_LORIKSCHAMBER, DW_GOLEMDEAD, DW_DRAGONLORDDEAD, DW_GREENDRAGONDEAD } |
the quest markers More... | |
enum | dw_shield { DW_NOSHIELD, DW_SMALLSHIELD, DW_LARGESHIELD, DW_SILVERSHIELD } |
the shields More... | |
enum | dw_weapon { DW_NOWEAPON, DW_BAMBOOPOLE = 0x20, DW_CLUB = 0x40, DW_COPPERSWORD = 0x60, DW_HANDAXE = 0x80, DW_BROADSWORD = 0xA0, DW_FLAMESWORD = 0xC0, DW_ERDRICKSSWORD = 0xE0 } |
the weapons More... | |
Variables | |
const int | ARMOR_MASK = 0x1C |
the armor bits of the equipment byte | |
const int | CHECKSUM_OFFSET = 0x1E |
the checksum offset | |
const int | EQUIPMENT_OFFSET = 0xA |
the equipment offset | |
const int | EXP_OFFSET = 0x0 |
the experience offset | |
const int | GAME_OFFSET = 0x68 |
the starting offset of the games | |
const int | GAME_SIZE = 0x140 |
the size of a save game | |
const int | GOLD_OFFSET = 0x2 |
the gold offset | |
const int | HERBS_OFFSET = 0x9 |
the medical herbs offset | |
const int | HP_OFFSET = 0x17 |
the hit points offset | |
const int | ITEM_OFFSET = 0x4 |
the starting item offset | |
const int | KENMASUTA_OFFSET = 0x3B |
the offset of the KEN MASUTA string | |
const int | KEYS_OFFSET = 0x8 |
the magic keys offset | |
const char | MAGIC_NUMBER = '\xC8' |
the magic number appears many times in the SRAM | |
const int | MP_OFFSET = 0x18 |
the magic points offset | |
const int | NAME_OFFSET = 0xE |
the name offset | |
const int | SHIELD_MASK = 0x3 |
the shield bits of the equipment byte | |
const int | SLOT_OFFSET = 0x35 |
the starting offset of the game slot usage bytes | |
const int | SRAM_SIZE = 0x2000 |
the size of an SRAM file | |
const int | WEAPON_MASK = 0xE0 |
the weapon bits of the equipment byte |
enum dwsrame::dw_armor |
the armors
DW_NOARMOR | |
DW_CLOTHES | |
DW_LEATHERARMOR | |
DW_CHAINMAIL | |
DW_HALFPLATE | |
DW_FULLPLATE | |
DW_MAGICARMOR | |
DW_ERDRICKSARMOR |
Definition at line 90 of file sramfile.hh.
enum dwsrame::dw_item |
the items
Definition at line 97 of file sramfile.hh.
enum dwsrame::dw_quest |
the quest markers
Definition at line 105 of file sramfile.hh.
enum dwsrame::dw_shield |
enum dwsrame::dw_weapon |
the weapons
DW_NOWEAPON | |
DW_BAMBOOPOLE | |
DW_CLUB | |
DW_COPPERSWORD | |
DW_HANDAXE | |
DW_BROADSWORD | |
DW_FLAMESWORD | |
DW_ERDRICKSSWORD |
Definition at line 118 of file sramfile.hh.
enum dwsrame::isfe_error |
The possible InvalidSRAMFileException error codes.
Definition at line 31 of file invalidsramfileexception.hh.
const int dwsrame::ARMOR_MASK = 0x1C |
const int dwsrame::CHECKSUM_OFFSET = 0x1E |
const int dwsrame::EQUIPMENT_OFFSET = 0xA |
const int dwsrame::EXP_OFFSET = 0x0 |
const int dwsrame::GAME_OFFSET = 0x68 |
const int dwsrame::GAME_SIZE = 0x140 |
const int dwsrame::GOLD_OFFSET = 0x2 |
const int dwsrame::HERBS_OFFSET = 0x9 |
const int dwsrame::HP_OFFSET = 0x17 |
const int dwsrame::ITEM_OFFSET = 0x4 |
const int dwsrame::KENMASUTA_OFFSET = 0x3B |
const int dwsrame::KEYS_OFFSET = 0x8 |
const char dwsrame::MAGIC_NUMBER = '\xC8' |
const int dwsrame::MP_OFFSET = 0x18 |
const int dwsrame::NAME_OFFSET = 0xE |
const int dwsrame::SHIELD_MASK = 0x3 |
const int dwsrame::SLOT_OFFSET = 0x35 |
const int dwsrame::SRAM_SIZE = 0x2000 |
const int dwsrame::WEAPON_MASK = 0xE0 |