ModelConstants.hh File Reference

#include <utility>

Go to the source code of this file.

Namespaces

namespace  hack4u

Defines

#define AVATAR_OFFSET   0x14
 SRAM offset for partial avatarhoods.
#define BALLOON_LATITUDE_OFFSET   0xF1
 SRAM offset for the Balloon's latitude.
#define BALLOON_LONGITUDE_OFFSET   0xF0
 SRAM offset for the Balloon's longitude.
#define CHECKSUM_OFFSET   0x00
 SRAM offset for the primary checksum.
#define CURRENT_HP_OFFSET   0x71
 Starting SRAM offset for chracater current HP.
#define CURRENT_MP_OFFSET   0x91
 Starting SRAM offset for chracater current MP.
#define DEXTERITY_OFFSET   0xB1
 Starting SRAM offset for chracater dexterity.
#define EQUIPMENT_OFFSET   0x39
 Starting SRAM offset for equipment.
#define EXPERIENCE_OFFSET   0xB9
 Starting SRAM offset for chracater experience.
#define GOLD_OFFSET   0x27
 SRAM offset for gold.
#define HERB_OFFSET   0x1F
 Starting SRAM offset for herbs.
#define INTELLIGENCE_OFFSET   0xA9
 Starting SRAM offset for chracater intelligence.
#define JOINED_OFFSET   0xB
 SRAM offset for joined members.
#define LEVEL_OFFSET   0x69
 Starting SRAM offset for chracater levels.
#define MAGIC_OFFSET   0x1B
 Starting SRAM offset for magic.
#define MAX_HP_OFFSET   0x81
 Starting SRAM offset for chracater max HP.
#define MAX_MP_OFFSET   0x99
 Starting SRAM offset for chracater max MP.
#define MEMBER_OFFSET   0x15
 Starting SRAM offset for the party members.
#define MOON_OFFSET   0x01
 SRAM offset for the moon phases.
#define NAME_OFFSET   0x02
 SRAM offset for the hero's name.
#define PIRATESHIP_OFFSET   0xED
 SRAM offset for captured pirate ships.
#define PIRATESHIP_LATITUDE_OFFSET   0xF5
 Starting SRAM offset for Pirate Ship latitude.
#define PIRATESHIP_LONGITUDE_OFFSET   0xF4
 Starting SRAM offset for Pirate Ship longitude.
#define RUNES_OFFSET   0x1A
 SRAM offset for Runes.
#define SANITY_OFFSET   0x1900
 The starting offset within the SRAM of the sanity values.
#define SANITY_XOR1   0xAA
 The first sanity check XOR.
#define SANITY_XOR2   0x55
 The second sanity check XOR.
#define SAVE_SIZE   0x200
 The size of a particular save game.
#define SRAM_OFFSET   0x1A00
 Starting offset within the SRAM of the save games.
#define SRAM_SIZE   0x2000
 The size of SRAM.
#define START_LOCATION   0x107
 The start location.
#define STONES_OFFSET   0x19
 SRAM offset for Stones.
#define STRENGTH_OFFSET   0xA1
 Starting SRAM offset for chracater strength.
#define TOOL_OFFSET   0x29
 Starting SRAM offset for tools.
#define VIRTUE_OFFSET   0x0C
 Starting SRAM offset for virtues.
#define WHIRLPOOL_LATITUDE_OFFSET   0xF3
 SRAM offset for the whirlpool's latitude.
#define WHIRLPOOL_LONGITUDE_OFFSET   0xF2
 SRAM offset for the whirlpool's longitude.

Enumerations

enum  hack4u::Character {
  hack4u::MAGE, hack4u::BARD, hack4u::FIGHTER, hack4u::DRUID,
  hack4u::TINKER, hack4u::PALADIN, hack4u::RANGER, hack4u::SHEPHERD
}
 The eight characters. More...
enum  hack4u::City {
  hack4u::MOONGLOW, hack4u::BRITAIN, hack4u::JHELOM, hack4u::YEW,
  hack4u::MINOC, hack4u::TRINSIC, hack4u::SKARABRAE, hack4u::MAGINCIA
}
 The eight cities of virtue. More...
enum  hack4u::Herb {
  hack4u::ASH, hack4u::GINSENG, hack4u::GARLIC, hack4u::SILKWEB,
  hack4u::MOSS, hack4u::PEARL, hack4u::FUNGUS, hack4u::MANROOT
}
 The eight herbs (reagents). More...
enum  hack4u::Magic {
  hack4u::LIGHT, hack4u::MISSILE, hack4u::AWAKEN, hack4u::CURE,
  hack4u::WIND, hack4u::HEAL, hack4u::FIRE, hack4u::EXIT,
  hack4u::DISPEL, hack4u::VIEW, hack4u::PROTECT, hack4u::ICE,
  hack4u::BLINK, hack4u::ENERGY, hack4u::QUICK, hack4u::INVALID1,
  hack4u::SLEEP, hack4u::REFLECT, hack4u::NEGATE, hack4u::INVALID2,
  hack4u::DESTROY, hack4u::JINX, hack4u::SQUISH, hack4u::GATE,
  hack4u::TREMOR, hack4u::LIFE, hack4u::INVALID3, hack4u::DEFEAT
}
 The possible magic in the game. More...
enum  hack4u::Moon { hack4u::TRAMMEL, hack4u::FELUCCA }
 The two moons of Ultima. More...
enum  hack4u::PirateShip { hack4u::SHIP1, hack4u::SHIP2, hack4u::SHIP3, hack4u::SHIP4 }
 The capture pirate ships. More...
enum  hack4u::StartLocation {
  hack4u::MOONGLOW_INN = 0x5, hack4u::BRITAIN_INN, hack4u::JHELOM_INN, hack4u::YEW_INN,
  hack4u::MINOC_INN, hack4u::TRINSIC_INN, hack4u::SKARABRAE_INN, hack4u::VESPER_INN = 0xE
}
 The possible starting locations. More...
enum  hack4u::Tool {
  hack4u::TORCH, hack4u::GEM, hack4u::KEY, hack4u::OIL,
  hack4u::SEXTANT, hack4u::SCALE, hack4u::FLUTE, hack4u::CANDLE,
  hack4u::BOOK, hack4u::BELL, hack4u::WHEEL, hack4u::HORN,
  hack4u::SKULL, hack4u::TRUTHKEY, hack4u::COURAGEKEY, hack4u::LOVEKEY
}
 The tools. More...
enum  hack4u::Virtue {
  hack4u::HONESTY, hack4u::COMPASSION, hack4u::VALOR, hack4u::JUSTICE,
  hack4u::SACRIFICE, hack4u::HONOR, hack4u::SPIRITUALITY, hack4u::HUMILITY
}
 The eight virtues. More...

Variables

const std::pair< int, int > hack4u::FOUND_RUNES_OFFSET []
 Found offsets for the eight runes.
const std::pair< int, int > hack4u::FOUND_STONES_OFFSET []
 Found offsets for the eight stones.
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 offset for the Candle of Love.
const std::pair< int, int > hack4u::FOUND_FLUTE_OFFSET
 Found offset for the Flute.
const std::pair< int, int > hack4u::FOUND_HORN_OFFSET
 Found offset for the Silver Horn.
const std::pair< int, int > hack4u::FOUND_SCALE_OFFSET
 Found offset for the Scale.
const std::pair< int, int > hack4u::FOUND_SKULL_OFFSET
 Found offset for Mondain's Skull.


Define Documentation

#define AVATAR_OFFSET   0x14

SRAM offset for partial avatarhoods.

Definition at line 31 of file ModelConstants.hh.

#define BALLOON_LATITUDE_OFFSET   0xF1

SRAM offset for the Balloon's latitude.

Definition at line 34 of file ModelConstants.hh.

#define BALLOON_LONGITUDE_OFFSET   0xF0

SRAM offset for the Balloon's longitude.

Definition at line 37 of file ModelConstants.hh.

#define CHECKSUM_OFFSET   0x00

SRAM offset for the primary checksum.

Definition at line 40 of file ModelConstants.hh.

#define CURRENT_HP_OFFSET   0x71

Starting SRAM offset for chracater current HP.

Definition at line 43 of file ModelConstants.hh.

#define CURRENT_MP_OFFSET   0x91

Starting SRAM offset for chracater current MP.

Definition at line 46 of file ModelConstants.hh.

#define DEXTERITY_OFFSET   0xB1

Starting SRAM offset for chracater dexterity.

Definition at line 49 of file ModelConstants.hh.

#define EQUIPMENT_OFFSET   0x39

Starting SRAM offset for equipment.

Definition at line 52 of file ModelConstants.hh.

#define EXPERIENCE_OFFSET   0xB9

Starting SRAM offset for chracater experience.

Definition at line 55 of file ModelConstants.hh.

#define GOLD_OFFSET   0x27

SRAM offset for gold.

Definition at line 58 of file ModelConstants.hh.

#define HERB_OFFSET   0x1F

Starting SRAM offset for herbs.

Definition at line 61 of file ModelConstants.hh.

#define INTELLIGENCE_OFFSET   0xA9

Starting SRAM offset for chracater intelligence.

Definition at line 64 of file ModelConstants.hh.

#define JOINED_OFFSET   0xB

SRAM offset for joined members.

Definition at line 67 of file ModelConstants.hh.

#define LEVEL_OFFSET   0x69

Starting SRAM offset for chracater levels.

Definition at line 70 of file ModelConstants.hh.

#define MAGIC_OFFSET   0x1B

Starting SRAM offset for magic.

Definition at line 73 of file ModelConstants.hh.

#define MAX_HP_OFFSET   0x81

Starting SRAM offset for chracater max HP.

Definition at line 76 of file ModelConstants.hh.

#define MAX_MP_OFFSET   0x99

Starting SRAM offset for chracater max MP.

Definition at line 79 of file ModelConstants.hh.

#define MEMBER_OFFSET   0x15

Starting SRAM offset for the party members.

Definition at line 82 of file ModelConstants.hh.

#define MOON_OFFSET   0x01

SRAM offset for the moon phases.

Definition at line 85 of file ModelConstants.hh.

#define NAME_OFFSET   0x02

SRAM offset for the hero's name.

Definition at line 88 of file ModelConstants.hh.

#define PIRATESHIP_LATITUDE_OFFSET   0xF5

Starting SRAM offset for Pirate Ship latitude.

Definition at line 94 of file ModelConstants.hh.

#define PIRATESHIP_LONGITUDE_OFFSET   0xF4

Starting SRAM offset for Pirate Ship longitude.

Definition at line 97 of file ModelConstants.hh.

#define PIRATESHIP_OFFSET   0xED

SRAM offset for captured pirate ships.

Definition at line 91 of file ModelConstants.hh.

#define RUNES_OFFSET   0x1A

SRAM offset for Runes.

Definition at line 100 of file ModelConstants.hh.

#define SANITY_OFFSET   0x1900

The starting offset within the SRAM of the sanity values.

Definition at line 103 of file ModelConstants.hh.

#define SANITY_XOR1   0xAA

The first sanity check XOR.

Definition at line 106 of file ModelConstants.hh.

#define SANITY_XOR2   0x55

The second sanity check XOR.

Definition at line 109 of file ModelConstants.hh.

#define SAVE_SIZE   0x200

The size of a particular save game.

Definition at line 112 of file ModelConstants.hh.

#define SRAM_OFFSET   0x1A00

Starting offset within the SRAM of the save games.

Definition at line 115 of file ModelConstants.hh.

#define SRAM_SIZE   0x2000

The size of SRAM.

Definition at line 118 of file ModelConstants.hh.

#define START_LOCATION   0x107

The start location.

Definition at line 121 of file ModelConstants.hh.

#define STONES_OFFSET   0x19

SRAM offset for Stones.

Definition at line 124 of file ModelConstants.hh.

#define STRENGTH_OFFSET   0xA1

Starting SRAM offset for chracater strength.

Definition at line 127 of file ModelConstants.hh.

#define TOOL_OFFSET   0x29

Starting SRAM offset for tools.

Definition at line 130 of file ModelConstants.hh.

#define VIRTUE_OFFSET   0x0C

Starting SRAM offset for virtues.

Definition at line 133 of file ModelConstants.hh.

#define WHIRLPOOL_LATITUDE_OFFSET   0xF3

SRAM offset for the whirlpool's latitude.

Definition at line 136 of file ModelConstants.hh.

#define WHIRLPOOL_LONGITUDE_OFFSET   0xF2

SRAM offset for the whirlpool's longitude.

Definition at line 139 of file ModelConstants.hh.


Generated on Mon Dec 29 01:19:01 2008 for hack4u by  doxygen 1.5.4