hack4u Namespace Reference


Detailed Description

Private hack4u namespace is used for all classs and members of this project.


Classes

class  FileIOException
class  InvalidSRAMException
class  Hack4u
 The main class. More...
class  SaveSlot
 A class representing a single game save slot. More...
class  SRAMFile
class  FileDropTarget
 Class implementing a wxFileDropTarget for the MainFrame class. More...
class  MainFrame
 The main frame of the application. More...

Enumerations

enum  FileIOError { FIE_CANNOTOPEN, FIE_IOERROR }
 error codes that cause FileIOExceptions to be thrown More...
enum  InvalidSRAMError { ISE_NOSUCHFILE, ISE_IOERROR, ISE_BADCHECKSUM }
enum  Character {
  MAGE, BARD, FIGHTER, DRUID,
  TINKER, PALADIN, RANGER, SHEPHERD
}
 The eight characters. More...
enum  City {
  MOONGLOW, BRITAIN, JHELOM, YEW,
  MINOC, TRINSIC, SKARABRAE, MAGINCIA
}
 The eight cities of virtue. More...
enum  Herb {
  ASH, GINSENG, GARLIC, SILKWEB,
  MOSS, PEARL, FUNGUS, MANROOT
}
 The eight herbs (reagents). More...
enum  Magic {
  LIGHT, MISSILE, AWAKEN, CURE,
  WIND, HEAL, FIRE, EXIT,
  DISPEL, VIEW, PROTECT, ICE,
  BLINK, ENERGY, QUICK, INVALID1,
  SLEEP, REFLECT, NEGATE, INVALID2,
  DESTROY, JINX, SQUISH, GATE,
  TREMOR, LIFE, INVALID3, DEFEAT
}
 The possible magic in the game. More...
enum  Moon { TRAMMEL, FELUCCA }
 The two moons of Ultima. More...
enum  PirateShip { SHIP1, SHIP2, SHIP3, SHIP4 }
 The capture pirate ships. More...
enum  StartLocation {
  MOONGLOW_INN = 0x5, BRITAIN_INN, JHELOM_INN, YEW_INN,
  MINOC_INN, TRINSIC_INN, SKARABRAE_INN, VESPER_INN = 0xE
}
 The possible starting locations. More...
enum  Tool {
  TORCH, GEM, KEY, OIL,
  SEXTANT, SCALE, FLUTE, CANDLE,
  BOOK, BELL, WHEEL, HORN,
  SKULL, TRUTHKEY, COURAGEKEY, LOVEKEY
}
 The tools. More...
enum  Virtue {
  HONESTY, COMPASSION, VALOR, JUSTICE,
  SACRIFICE, HONOR, SPIRITUALITY, HUMILITY
}
 The eight virtues. More...
enum  Location {
  LMOONGLOW, LBRITAIN, LJHELOM, LYEW,
  LMINOC, LTRINSIC, LSKARABRAE, LMAGINCIA,
  LLYCAEUM, LEMPATHABBEY, LSERPENTSHOLD, LPAWS,
  LVESPER, LBUCCANEERSDEN, LCOVE
}
 the possible locations for the location menu More...

Functions

const std::pair< int, int > FOUND_BELL_OFFSET (0xD6, 1)
const std::pair< int, int > FOUND_BOOK_OFFSET (0xD6, 0)
const std::pair< int, int > FOUND_CANDLE_OFFSET (0xD5, 7)
const std::pair< int, int > FOUND_FLUTE_OFFSET (0xD5, 5)
const std::pair< int, int > FOUND_HORN_OFFSET (0xD6, 3)
const std::pair< int, int > FOUND_SCALE_OFFSET (0xD5, 4)
const std::pair< int, int > FOUND_SKULL_OFFSET (0xD6, 4)

Variables

const std::pair< int, int > FOUND_RUNES_OFFSET []
 Found offsets for the eight runes.
const std::pair< int, int > FOUND_STONES_OFFSET []
 Found offsets for the eight stones.
const std::pair< int, int > FOUND_BELL_OFFSET
 Found offset for the Bell of Courage.
const std::pair< int, int > FOUND_BOOK_OFFSET
 Found offset for the Book of Truth.
const std::pair< int, int > FOUND_CANDLE_OFFSET
 Found offse for the Candle of Love.
const std::pair< int, int > FOUND_FLUTE_OFFSET
 Found offse for the Flute.
const std::pair< int, int > FOUND_HORN_OFFSET
 Found offse for the Silver Horn.
const std::pair< int, int > FOUND_SCALE_OFFSET
 Found offse for the Scale.
const std::pair< int, int > FOUND_SKULL_OFFSET
 Found offse for Mondain's Skull.


Enumeration Type Documentation

enum hack4u::Character
 

The eight characters.

Enumerator:
MAGE 
BARD 
FIGHTER 
DRUID 
TINKER 
PALADIN 
RANGER 
SHEPHERD 

Definition at line 143 of file ModelConstants.hh.

enum hack4u::City
 

The eight cities of virtue.

Enumerator:
MOONGLOW 
BRITAIN 
JHELOM 
YEW 
MINOC 
TRINSIC 
SKARABRAE 
MAGINCIA 

Definition at line 147 of file ModelConstants.hh.

enum hack4u::FileIOError
 

error codes that cause FileIOExceptions to be thrown

Enumerator:
FIE_CANNOTOPEN 
FIE_IOERROR 

Definition at line 32 of file FileIOException.hh.

enum hack4u::Herb
 

The eight herbs (reagents).

Enumerator:
ASH 
GINSENG 
GARLIC 
SILKWEB 
MOSS 
PEARL 
FUNGUS 
MANROOT 

Definition at line 151 of file ModelConstants.hh.

enum hack4u::InvalidSRAMError
 

Enumerator:
ISE_NOSUCHFILE 
ISE_IOERROR 
ISE_BADCHECKSUM 

Definition at line 31 of file InvalidSRAMException.hh.

enum hack4u::Location
 

the possible locations for the location menu

Enumerator:
LMOONGLOW 
LBRITAIN 
LJHELOM 
LYEW 
LMINOC 
LTRINSIC 
LSKARABRAE 
LMAGINCIA 
LLYCAEUM 
LEMPATHABBEY 
LSERPENTSHOLD 
LPAWS 
LVESPER 
LBUCCANEERSDEN 
LCOVE 

Definition at line 35 of file MainFrame.hh.

enum hack4u::Magic
 

The possible magic in the game.

Enumerator:
LIGHT 
MISSILE 
AWAKEN 
CURE 
WIND 
HEAL 
FIRE 
EXIT 
DISPEL 
VIEW 
PROTECT 
ICE 
BLINK 
ENERGY 
QUICK 
INVALID1 
SLEEP 
REFLECT 
NEGATE 
INVALID2 
DESTROY 
JINX 
SQUISH 
GATE 
TREMOR 
LIFE 
INVALID3 
DEFEAT 

Definition at line 154 of file ModelConstants.hh.

enum hack4u::Moon
 

The two moons of Ultima.

Enumerator:
TRAMMEL 
FELUCCA 

Definition at line 160 of file ModelConstants.hh.

enum hack4u::PirateShip
 

The capture pirate ships.

Enumerator:
SHIP1 
SHIP2 
SHIP3 
SHIP4 

Definition at line 163 of file ModelConstants.hh.

enum hack4u::StartLocation
 

The possible starting locations.

Enumerator:
MOONGLOW_INN 
BRITAIN_INN 
JHELOM_INN 
YEW_INN 
MINOC_INN 
TRINSIC_INN 
SKARABRAE_INN 
VESPER_INN 

Definition at line 166 of file ModelConstants.hh.

enum hack4u::Tool
 

The tools.

Enumerator:
TORCH 
GEM 
KEY 
OIL 
SEXTANT 
SCALE 
FLUTE 
CANDLE 
BOOK 
BELL 
WHEEL 
HORN 
SKULL 
TRUTHKEY 
COURAGEKEY 
LOVEKEY 

Definition at line 171 of file ModelConstants.hh.

enum hack4u::Virtue
 

The eight virtues.

Enumerator:
HONESTY 
COMPASSION 
VALOR 
JUSTICE 
SACRIFICE 
HONOR 
SPIRITUALITY 
HUMILITY 

Definition at line 175 of file ModelConstants.hh.


Function Documentation

const std::pair<int, int> hack4u::FOUND_BELL_OFFSET 0xD6  ,
 

const std::pair<int, int> hack4u::FOUND_BOOK_OFFSET 0xD6  ,
 

const std::pair<int, int> hack4u::FOUND_CANDLE_OFFSET 0xD5  ,
 

const std::pair<int, int> hack4u::FOUND_FLUTE_OFFSET 0xD5  ,
 

const std::pair<int, int> hack4u::FOUND_HORN_OFFSET 0xD6  ,
 

const std::pair<int, int> hack4u::FOUND_SCALE_OFFSET 0xD5  ,
 

const std::pair<int, int> hack4u::FOUND_SKULL_OFFSET 0xD6  ,
 


Variable Documentation

const std::pair<int, int> hack4u::FOUND_BELL_OFFSET
 

Found offset for the Bell of Courage.

const std::pair<int, int> hack4u::FOUND_BOOK_OFFSET
 

Found offset for the Book of Truth.

const std::pair<int, int> hack4u::FOUND_CANDLE_OFFSET
 

Found offse for the Candle of Love.

const std::pair<int, int> hack4u::FOUND_FLUTE_OFFSET
 

Found offse for the Flute.

const std::pair<int, int> hack4u::FOUND_HORN_OFFSET
 

Found offse for the Silver Horn.

const std::pair< int, int > hack4u::FOUND_RUNES_OFFSET
 

Initial value:

 {
    std::pair<int, int>(0xD4, 4), std::pair<int, int>(0xD4, 5),
    std::pair<int, int>(0xD4, 6), std::pair<int, int>(0xD4, 7),
    std::pair<int, int>(0xD5, 0), std::pair<int, int>(0xD5, 1),
    std::pair<int, int>(0xD5, 2), std::pair<int, int>(0xD5, 3)
}
Found offsets for the eight runes.

Definition at line 36 of file SaveSlot.cc.

const std::pair<int, int> hack4u::FOUND_SCALE_OFFSET
 

Found offse for the Scale.

const std::pair<int, int> hack4u::FOUND_SKULL_OFFSET
 

Found offse for Mondain's Skull.

const std::pair< int, int > hack4u::FOUND_STONES_OFFSET
 

Initial value:

 {
    std::pair<int, int>(0xD6, 7), std::pair<int, int>(0xD7, 0),
    std::pair<int, int>(0xD7, 1), std::pair<int, int>(0xD7, 2),
    std::pair<int, int>(0xD7, 3), std::pair<int, int>(0xD7, 4),
    std::pair<int, int>(0xD7, 5), std::pair<int, int>(0xD7, 6)
}
Found offsets for the eight stones.

Definition at line 43 of file SaveSlot.cc.


Generated on Tue Mar 21 07:01:10 2006 for hack4u by  doxygen 1.4.6-NO