dwsrame Namespace Reference


Detailed Description

The project namespace.


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


Enumeration Type Documentation

enum dwsrame::dw_armor

the armors

Enumerator:
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

Enumerator:
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 

Definition at line 97 of file sramfile.hh.

enum dwsrame::dw_quest

the quest markers

Enumerator:
DW_HIDDENSTAIRS 
DW_RAINBOWBRIDGE 
DW_USINGDRAGONSSCALE 
DW_USINGFIGHTERSRING 
DW_USINGCURSEDBELT 
DW_USINGDEATHNECKLACE 
DW_HOLDINGGWAELIN 
DW_GWAELINONTHRONE 
DW_LORIKSCHAMBER 
DW_GOLEMDEAD 
DW_DRAGONLORDDEAD 
DW_GREENDRAGONDEAD 

Definition at line 105 of file sramfile.hh.

enum dwsrame::dw_shield

the shields

Enumerator:
DW_NOSHIELD 
DW_SMALLSHIELD 
DW_LARGESHIELD 
DW_SILVERSHIELD 

Definition at line 113 of file sramfile.hh.

enum dwsrame::dw_weapon

the weapons

Enumerator:
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.

Enumerator:
ISFE_FILENOTFOUND 
ISFE_INVALIDSIZE 
ISFE_NOVALIDGAMES 

Definition at line 31 of file invalidsramfileexception.hh.


Variable Documentation

const int dwsrame::ARMOR_MASK = 0x1C

the armor bits of the equipment byte

Definition at line 33 of file sramfile.hh.

const int dwsrame::CHECKSUM_OFFSET = 0x1E

the checksum offset

Definition at line 36 of file sramfile.hh.

const int dwsrame::EQUIPMENT_OFFSET = 0xA

the equipment offset

Definition at line 39 of file sramfile.hh.

const int dwsrame::EXP_OFFSET = 0x0

the experience offset

Definition at line 42 of file sramfile.hh.

const int dwsrame::GAME_OFFSET = 0x68

the starting offset of the games

Definition at line 45 of file sramfile.hh.

const int dwsrame::GAME_SIZE = 0x140

the size of a save game

Definition at line 48 of file sramfile.hh.

const int dwsrame::GOLD_OFFSET = 0x2

the gold offset

Definition at line 51 of file sramfile.hh.

const int dwsrame::HERBS_OFFSET = 0x9

the medical herbs offset

Definition at line 54 of file sramfile.hh.

const int dwsrame::HP_OFFSET = 0x17

the hit points offset

Definition at line 57 of file sramfile.hh.

const int dwsrame::ITEM_OFFSET = 0x4

the starting item offset

Definition at line 60 of file sramfile.hh.

const int dwsrame::KENMASUTA_OFFSET = 0x3B

the offset of the KEN MASUTA string

Definition at line 63 of file sramfile.hh.

const int dwsrame::KEYS_OFFSET = 0x8

the magic keys offset

Definition at line 66 of file sramfile.hh.

const char dwsrame::MAGIC_NUMBER = '\xC8'

the magic number appears many times in the SRAM

Definition at line 69 of file sramfile.hh.

const int dwsrame::MP_OFFSET = 0x18

the magic points offset

Definition at line 72 of file sramfile.hh.

const int dwsrame::NAME_OFFSET = 0xE

the name offset

Definition at line 75 of file sramfile.hh.

const int dwsrame::SHIELD_MASK = 0x3

the shield bits of the equipment byte

Definition at line 78 of file sramfile.hh.

const int dwsrame::SLOT_OFFSET = 0x35

the starting offset of the game slot usage bytes

Definition at line 81 of file sramfile.hh.

const int dwsrame::SRAM_SIZE = 0x2000

the size of an SRAM file

Definition at line 84 of file sramfile.hh.

const int dwsrame::WEAPON_MASK = 0xE0

the weapon bits of the equipment byte

Definition at line 87 of file sramfile.hh.


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