
Go to the source code of this file.
Defines | |
| #define | NUM_MONSTER_SPELL_SLOTS 6 |
| #define | ESCAPE '\x1b' |
| #define | CYCLE_LENGTH 200 |
| #define | CYCLE_INTERVAL 50 |
| #define | SPAWN_SIZE 1 |
| #define | BOSS_MONSTER_EXTRA_POWER 5 |
| #define | FREQUENCY_OF_RUNES 7 |
| #define | ENDOFPACK 52 |
| #define | NON_ENTITY 27000 |
| #define | NUM_MON_ENCHANTS 6 |
| #define | MAX_MONS_ALLOC 20 |
| #define | MAX_SUBTYPES 50 |
| #define | MAX_ITEMS 2000 |
| #define | NON_ITEM NON_ENTITY |
| #define | MAX_CLOUDS 600 |
| #define | EMPTY_CLOUD NON_ENTITY |
| #define | GXM 80 |
| #define | GYM 70 |
| #define | BOUNDARY_BORDER 1 |
| #define | X_BOUND_1 (-1 + BOUNDARY_BORDER) |
| #define | X_BOUND_2 (GXM - BOUNDARY_BORDER) |
| #define | X_WIDTH (X_BOUND_2 - X_BOUND_1 + 1) |
| #define | Y_BOUND_1 (-1 + BOUNDARY_BORDER) |
| #define | Y_BOUND_2 (GYM - BOUNDARY_BORDER) |
| #define | Y_WIDTH (Y_BOUND_2 - Y_BOUND_1 + 1) |
| #define | LOS_RADIUS 8 |
| #define | LOS_RADIUS_SQ (LOS_RADIUS * LOS_RADIUS + 1) |
| #define | LOS_MAX_RADIUS LOS_RADIUS |
| #define | LOS_MAX_RADIUS_SQ (LOS_MAX_RADIUS * LOS_MAX_RADIUS + 1) |
| #define | LOS_MAX_RANGE LOS_MAX_RADIUS |
| #define | ENV_SHOW_OFFSET LOS_MAX_RANGE |
| #define | ENV_SHOW_DIAMETER (ENV_SHOW_OFFSET * 2 + 1) |
| #define | VIEW_BASE_WIDTH 33 |
| #define | VIEW_MIN_WIDTH ENV_SHOW_DIAMETER |
| #define | VIEW_MIN_HEIGHT ENV_SHOW_DIAMETER |
| #define | MSG_MIN_HEIGHT 5 |
| #define | MAX_TRAPS 400 |
| #define | MAX_SHOPS 64 |
| #define | MAX_RANDOM_SHOPS 5 |
| #define | AUTOMATIC_HIT 1500 |
| #define | MAX_GOD_ABILITIES 5 |
| #define | POWER_DECAY 50 |
| #define | TORNADO_RADIUS 5 |
| #define | NUMBER_OF_RUNES_NEEDED 3 |
| #define | MAX_UNRANDARTS 100 |
| #define | haste_mul(x) div_rand_round((x) * 3, 2) |
| #define | haste_div(x) div_rand_round((x) * 2, 3) |
| #define | menv env.mons |
| #define | mitm env.item |
| #define | grd env.grid |
| #define | mgrd env.mgrid |
| #define | igrd env.igrid |
| #define | COLFLAG_CURSES_BRIGHTEN 0x0080 |
| #define | COLFLAG_FRIENDLY_MONSTER 0x0100 |
| #define | COLFLAG_NEUTRAL_MONSTER 0x0200 |
| #define | COLFLAG_WILLSTAB 0x0400 |
| #define | COLFLAG_MAYSTAB 0x0800 |
| #define | COLFLAG_ITEM_HEAP 0x1000 |
| #define | COLFLAG_FEATURE_ITEM 0x2000 |
| #define | COLFLAG_TRAP_ITEM 0x4000 |
| #define | COLFLAG_REVERSE 0x8000 |
| #define | COLFLAG_MASK 0xFF00 |
| #define | PDESCS(colour) (colour) |
| #define | PDESCQ(qualifier, colour) (((qualifier) * PDC_NCOLOURS) + (colour)) |
| #define | PCOLOUR(desc) ((desc) % PDC_NCOLOURS) |
| #define | PQUAL(desc) ((desc) / PDC_NCOLOURS) |
| #define | CONTROL(xxx) ((xxx) - 'A' + 1) |
| #define | ARRAYSZ(x) (sizeof(x) / sizeof(x[0])) |
| #define | RANDOM_ELEMENT(x) (x[random2(ARRAYSZ(x))]) |
| #define | KEY_MACRO_MORE_PROTECT -10 |
| #define | KEY_MACRO_DISABLE_MORE -1 |
| #define | KEY_MACRO_ENABLE_MORE -2 |
| #define | PI 3.14159265359f |
Enumerations | |
| enum | extra_monster_index_type { MAX_MONSTERS = 700, ANON_FRIENDLY_MONSTER = MAX_MONSTERS, NON_MONSTER = NON_ENTITY, MHITNOT = NON_MONSTER, MHITYOU, ZOT_TRAP_MISCAST, WIELD_MISCAST, MELEE_MISCAST, MISC_MISCAST } |
| enum | COLORS { BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY, LIGHTGREY = LIGHTGRAY, DARKGRAY, DARKGREY = DARKGRAY, LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED, LIGHTMAGENTA, YELLOW, WHITE, MAX_TERM_COLOUR } |
| enum | CHAR_ATTRIBUTES { CHATTR_NORMAL, CHATTR_STANDOUT, CHATTR_BOLD, CHATTR_BLINK, CHATTR_UNDERLINE, CHATTR_REVERSE, CHATTR_DIM, CHATTR_HILITE, CHATTR_ATTRMASK = 0xF, CHATTR_COLMASK = 0xF00 } |
| enum | GotoRegion { GOTO_CRT, GOTO_MSG, GOTO_STAT, GOTO_DNGN, GOTO_MLIST } |
| enum | mouse_mode { MOUSE_MODE_NORMAL, MOUSE_MODE_COMMAND, MOUSE_MODE_TARGET, MOUSE_MODE_TARGET_DIR, MOUSE_MODE_TARGET_PATH, MOUSE_MODE_MORE, MOUSE_MODE_MACRO, MOUSE_MODE_MAX } |
Variables | |
| const int | STR_REQ_THRESHOLD = 10 |
| const int | MAX_GHOSTS = 10 |
| const int | INFINITE_DISTANCE = 30000 |
| const int | MAPGEN_BORDER = 2 |
| const int | LABYRINTH_BORDER = 4 |
| const int | DEBUG_COOKIE = 32767 |
| const int | MAX_SKILL_LEVEL = 27 |
| const int | MAX_EXP_TOTAL = 8999999 |
| const int | MAX_EXP_POOL = 20000 |
| const int | FULL_EXP_POOL = MAX_EXP_POOL |
| const int | MIN_HIT_MISS_PERCENTAGE = 5 |
| const int | MONSTER_LOS_RANGE = LOS_RADIUS |
| const int | MAX_ROD_CHARGE = 17 |
| const int | ROD_CHARGE_MULT = 100 |
| const int | BASELINE_DELAY = 10 |
| const int | GOURMAND_MAX = 200 * BASELINE_DELAY |
| const int | GOURMAND_NUTRITION_BASE = 10 * BASELINE_DELAY |
| const int | CHUNK_BASE_NUTRITION = 1000 |
| const int | ICEMAIL_MAX = 10 |
| const int | ICEMAIL_TIME = 300 * BASELINE_DELAY |
| const int | MAG_IMMUNE = 5000 |
| const int | INSTANT_DEATH = -9999 |
| const int | MAX_WPN_ENCHANT = 9 |
| const int | MAX_ARM_ENCHANT = 8 |
| const int | MAX_SEC_ENCHANT = 2 |
| const int | MAX_KNOWN_SPELLS = 21 |
| const int | INVALID_ABSDEPTH = -1000 |
| const int | DEPTH_ABYSS = 51 |
| const int | DEPTH_PAN = 52 |
| const int | BRANCH_DUNGEON_DEPTH = 27 |
| const int | ANTITRAIN_PENALTY = 2 |
| const char *const | MONSTER_HIT_DICE = "monster-hit-dice" |
| const char *const | MONSTER_NUMBER = "monster-number" |
| const char *const | CORPSE_NEVER_DECAYS = "corpse-no-decay" |
| const char *const | MONSTER_MID = "monster-mid" |
| #define ARRAYSZ | ( | x | ) | (sizeof(x) / sizeof(x[0])) |
| #define AUTOMATIC_HIT 1500 |
| #define BOSS_MONSTER_EXTRA_POWER 5 |
| #define BOUNDARY_BORDER 1 |
| #define COLFLAG_CURSES_BRIGHTEN 0x0080 |
| #define COLFLAG_FEATURE_ITEM 0x2000 |
| #define COLFLAG_FRIENDLY_MONSTER 0x0100 |
| #define COLFLAG_ITEM_HEAP 0x1000 |
| #define COLFLAG_MASK 0xFF00 |
| #define COLFLAG_MAYSTAB 0x0800 |
| #define COLFLAG_NEUTRAL_MONSTER 0x0200 |
| #define COLFLAG_REVERSE 0x8000 |
| #define COLFLAG_TRAP_ITEM 0x4000 |
| #define COLFLAG_WILLSTAB 0x0400 |
| #define CONTROL | ( | xxx | ) | ((xxx) - 'A' + 1) |
| #define CYCLE_INTERVAL 50 |
| #define CYCLE_LENGTH 200 |
| #define EMPTY_CLOUD NON_ENTITY |
| #define ENDOFPACK 52 |
| #define ENV_SHOW_DIAMETER (ENV_SHOW_OFFSET * 2 + 1) |
| #define ENV_SHOW_OFFSET LOS_MAX_RANGE |
| #define ESCAPE '\x1b' |
| #define FREQUENCY_OF_RUNES 7 |
| #define grd env.grid |
| #define GXM 80 |
| #define GYM 70 |
| #define haste_div | ( | x | ) | div_rand_round((x) * 2, 3) |
| #define haste_mul | ( | x | ) | div_rand_round((x) * 3, 2) |
| #define igrd env.igrid |
| #define KEY_MACRO_DISABLE_MORE -1 |
| #define KEY_MACRO_ENABLE_MORE -2 |
| #define KEY_MACRO_MORE_PROTECT -10 |
| #define LOS_MAX_RADIUS LOS_RADIUS |
| #define LOS_MAX_RADIUS_SQ (LOS_MAX_RADIUS * LOS_MAX_RADIUS + 1) |
| #define LOS_MAX_RANGE LOS_MAX_RADIUS |
| #define LOS_RADIUS 8 |
| #define LOS_RADIUS_SQ (LOS_RADIUS * LOS_RADIUS + 1) |
| #define MAX_CLOUDS 600 |
| #define MAX_GOD_ABILITIES 5 |
| #define MAX_ITEMS 2000 |
| #define MAX_MONS_ALLOC 20 |
| #define MAX_RANDOM_SHOPS 5 |
| #define MAX_SHOPS 64 |
| #define MAX_SUBTYPES 50 |
| #define MAX_TRAPS 400 |
| #define MAX_UNRANDARTS 100 |
| #define menv env.mons |
| #define mgrd env.mgrid |
| #define mitm env.item |
| #define MSG_MIN_HEIGHT 5 |
| #define NON_ENTITY 27000 |
| #define NON_ITEM NON_ENTITY |
| #define NUM_MON_ENCHANTS 6 |
| #define NUM_MONSTER_SPELL_SLOTS 6 |
| #define NUMBER_OF_RUNES_NEEDED 3 |
| #define PCOLOUR | ( | desc | ) | ((desc) % PDC_NCOLOURS) |
| #define PDESCQ | ( | qualifier, | |||
| colour | ) | (((qualifier) * PDC_NCOLOURS) + (colour)) |
| #define PDESCS | ( | colour | ) | (colour) |
| #define PI 3.14159265359f |
| #define POWER_DECAY 50 |
| #define PQUAL | ( | desc | ) | ((desc) / PDC_NCOLOURS) |
| #define RANDOM_ELEMENT | ( | x | ) | (x[random2(ARRAYSZ(x))]) |
| #define SPAWN_SIZE 1 |
| #define TORNADO_RADIUS 5 |
| #define VIEW_BASE_WIDTH 33 |
| #define VIEW_MIN_HEIGHT ENV_SHOW_DIAMETER |
| #define VIEW_MIN_WIDTH ENV_SHOW_DIAMETER |
| #define X_BOUND_1 (-1 + BOUNDARY_BORDER) |
| #define X_BOUND_2 (GXM - BOUNDARY_BORDER) |
| #define X_WIDTH (X_BOUND_2 - X_BOUND_1 + 1) |
| #define Y_BOUND_1 (-1 + BOUNDARY_BORDER) |
| #define Y_BOUND_2 (GYM - BOUNDARY_BORDER) |
| #define Y_WIDTH (Y_BOUND_2 - Y_BOUND_1 + 1) |
| enum CHAR_ATTRIBUTES |
| enum COLORS |
| enum GotoRegion |
| enum mouse_mode |
| const int ANTITRAIN_PENALTY = 2 |
| const int BASELINE_DELAY = 10 |
| const int BRANCH_DUNGEON_DEPTH = 27 |
| const int CHUNK_BASE_NUTRITION = 1000 |
| const char* const CORPSE_NEVER_DECAYS = "corpse-no-decay" |
| const int DEBUG_COOKIE = 32767 |
| const int DEPTH_ABYSS = 51 |
| const int DEPTH_PAN = 52 |
| const int FULL_EXP_POOL = MAX_EXP_POOL |
| const int GOURMAND_MAX = 200 * BASELINE_DELAY |
| const int GOURMAND_NUTRITION_BASE = 10 * BASELINE_DELAY |
| const int ICEMAIL_MAX = 10 |
| const int ICEMAIL_TIME = 300 * BASELINE_DELAY |
| const int INFINITE_DISTANCE = 30000 |
| const int INSTANT_DEATH = -9999 |
| const int INVALID_ABSDEPTH = -1000 |
| const int LABYRINTH_BORDER = 4 |
| const int MAG_IMMUNE = 5000 |
| const int MAPGEN_BORDER = 2 |
| const int MAX_ARM_ENCHANT = 8 |
| const int MAX_EXP_POOL = 20000 |
| const int MAX_EXP_TOTAL = 8999999 |
| const int MAX_GHOSTS = 10 |
| const int MAX_KNOWN_SPELLS = 21 |
| const int MAX_ROD_CHARGE = 17 |
| const int MAX_SEC_ENCHANT = 2 |
| const int MAX_SKILL_LEVEL = 27 |
| const int MAX_WPN_ENCHANT = 9 |
| const int MIN_HIT_MISS_PERCENTAGE = 5 |
| const char* const MONSTER_HIT_DICE = "monster-hit-dice" |
| const int MONSTER_LOS_RANGE = LOS_RADIUS |
| const char* const MONSTER_MID = "monster-mid" |
| const char* const MONSTER_NUMBER = "monster-number" |
| const int ROD_CHARGE_MULT = 100 |
| const int STR_REQ_THRESHOLD = 10 |
1.5.6