#include "hack.h"
#include "lev.h"
#include "decl.h"
#include <ctype.h>
Functions | |
char * | random_engraving (char *outbuf) |
void | wipeout_text (char *engr, int cnt, unsigned seed) |
boolean | can_reach_floor () |
const char * | surface (int x, int y) |
const char * | ceiling (int x, int y) |
struct engr * | engr_at (xchar x, xchar y) |
void | u_wipe_engr (int cnt) |
void | wipe_engr_at (xchar x, xchar y, xchar cnt) |
void | read_engr_at (int x, int y) |
void | make_engr_at (int x, int y, const char *s, long e_time, xchar e_type) |
void | del_engr_at (int x, int y) |
int | freehand () |
static int | engrave (const char *, boolean) |
int | doengrave () |
int | doengrave_elbereth () |
static int | engrave (char *engraving, boolean fingers) const |
void | save_engravings (int fd, int mode) |
void | rest_engravings (int fd) |
void | del_engr (struct engr *ep) |
void | rloc_engr (struct engr *ep) |
void | make_grave (int x, int y, const char *str) |
Variables | |
static const char * | random_mesg [] |
struct { | |
char wipefrom | |
const char * wipeto | |
} | rubouts [] |
static NEARDATA const char | styluses [] |
static const char * | epitaphs [] |
boolean can_reach_floor | ( | ) |
References Is_airlevel, Is_waterlevel, Levitation, P_BASIC, P_SKILL, u, and you::uz.
Referenced by able_to_loot(), dopickup(), dosit(), drop(), engrave(), floorfood(), its_dead(), look_here(), pick_lock(), pickup(), read_engr_at(), try_disarm(), u_wipe_engr(), use_pick_axe2(), and use_stethoscope().
const char* ceiling | ( | int | x, |
int | y | ||
) |
References in_rooms(), IS_AIR, IS_DOOR, Is_earthlevel, IS_ROOM, IS_WALL, levl, SDOOR, SHOPBASE, TEMPLE, rm::typ, u, Underwater, you::uz, VAULT, and what.
Referenced by dotrap(), fall_through(), mattacku(), peffects(), seffects(), spoteffects(), throw_gold(), throwit(), toss_up(), use_mirror(), use_misc(), use_offensive(), use_pick_axe2(), use_stethoscope(), use_whip(), zap_dig(), and zap_updown().
void del_engr | ( | struct engr * | ep ) |
References dealloc_engr, head_engr, and engr::nxt_engr.
Referenced by del_engr_at(), engrave(), make_engr_at(), wipe_engr_at(), and zap_updown().
void del_engr_at | ( | int | x, |
int | y | ||
) |
References del_engr(), and engr_at().
Referenced by blow_up_landmine(), bury_objs(), dig_up_grave(), do_flood(), gush(), launch_obj(), make_grave(), readobjnam(), spo_grave(), and unearth_objs().
int doengrave | ( | ) |
int doengrave_elbereth | ( | ) |
References engr::engr_x, engr::engr_y, head_engr, and engr::nxt_engr.
Referenced by del_engr_at(), engrave(), make_engr_at(), read_engr_at(), rloc_engr(), wipe_engr_at(), and zap_updown().
static int engrave | ( | char * | engraving, |
boolean | fingers | ||
) | const [static] |
References A_WIS, altar_wrath(), AMULET_CLASS, aobjnam(), ARMOR_CLASS, ATHAME, BALL_CLASS, bill_dummy_object(), Blind, body_part(), BUFSZ, BURN, can_reach_floor(), cantwield, CHAIN_CLASS, check_capacity(), check_unpaid(), COIN_CLASS, CONDUCT_ILLITERACY, Confusion, monst::data, del_engr(), doname(), DUST, u_conduct::elbereths, engr_at(), ENGR_BLOOD, engr::engr_txt, engr::engr_type, ENGRAVE, exercise(), FALSE, FINGER, flags, FOOD_CLASS, freehand(), GEM_CLASS, getlin, getobj(), Hallucination, HAND, HEADSTONE, u_roleplay::illiterate, ILLOBJ_CLASS, index, Is_airlevel, IS_ALTAR, is_animal, is_blade, is_boots, is_demon, IS_FOUNTAIN, IS_GRAVE, is_ice(), is_lava(), is_pool(), Is_waterlevel, is_whirly, Levitation, levl, MAGIC_MARKER, make_blinded(), make_engr_at(), makeknown, makemon(), makeplural(), MARK, permonst::mlet, mon_nam(), mons, more_experienced(), moves, multi, Never_mind, NO_MM_FLAGS, nomovemsg, objects, obj::oclass, otense(), otmp, obj::otyp, obj::owornmask, pline(), PM_GHOUL, POTION_CLASS, QBUFSZ, RANDOM_CLASS, random_engraving(), resists_blnd(), RING_CLASS, rloc_engr(), rn2(), rnd(), ROCK_CLASS, you::roleplay, S_VAMPIRE, SCROLL_CLASS, shop_keeper(), SPBOOK_CLASS, obj::spe, Sprintf, Strcpy, Stunned, surface(), The(), Tobjnam(), TOOL_CLASS, TOWEL, TRUE, u, ublindf, you::uconduct, Underwater, useup(), you::ushops, you::ustuck, uwep, you::ux, you::uy, you::uz, VENOM_CLASS, flag::verbose, violated(), vision_clears, WAN_CANCELLATION, WAN_COLD, WAN_CREATE_MONSTER, WAN_DEATH, WAN_DIGGING, WAN_ENLIGHTENMENT, WAN_FIRE, WAN_LIGHT, WAN_LIGHTNING, WAN_LOCKING, WAN_MAGIC_MISSILE, WAN_MAKE_INVISIBLE, WAN_NOTHING, WAN_OPENING, WAN_POLYMORPH, WAN_PROBING, WAN_SECRET_DOOR_DETECTION, WAN_SLEEP, WAN_SLOW_MONSTER, WAN_SPEED_MONSTER, WAN_STRIKING, WAN_TELEPORTATION, WAN_UNDEAD_TURNING, WAN_WISHING, WAND_CLASS, WEAPON_CLASS, wizard, xname(), yn_function(), ynqchars, youmonst, zapnodir(), zappable(), and zeroobj.
static int engrave | ( | const char * | , |
boolean | |||
) | [static] |
int freehand | ( | ) |
References bimanual, uarms, uwep, and welded().
Referenced by able_to_loot(), engrave(), fix_worst_trouble(), in_trouble(), spelleffects(), use_container(), use_stethoscope(), and use_towel().
void make_engr_at | ( | int | x, |
int | y, | ||
const char * | s, | ||
long | e_time, | ||
xchar | e_type | ||
) |
References A_WIS, del_engr(), engr_at(), engr::engr_lth, engr::engr_time, engr::engr_txt, engr::engr_type, engr::engr_x, engr::engr_y, exercise(), head_engr, in_mklev, N_ENGRAVE, newengr, engr::nxt_engr, rnd(), Strcpy, and TRUE.
Referenced by create_engraving(), engrave(), make_grave(), makelevel(), makemaz(), makeniche(), place_random_engraving(), stock_room(), and zap_updown().
void make_grave | ( | int | x, |
int | y, | ||
const char * | str | ||
) |
References del_engr_at(), GRAVE, HEADSTONE, levl, make_engr_at(), rn2(), ROOM, SIZE, and t_at().
Referenced by done(), fill_zoo(), mkgrave(), paygd(), readobjnam(), and spo_grave().
char* random_engraving | ( | char * | outbuf ) |
References getrumor(), random_mesg, rn2(), SIZE, Strcpy, TRUE, and wipeout_text().
Referenced by engrave(), makelevel(), and zap_updown().
void read_engr_at | ( | int | x, |
int | y | ||
) |
References Blind, BUFSZ, BURN, can_reach_floor(), check_tutorial_message(), DUST, engr_at(), ENGR_BLOOD, engr::engr_txt, engr::engr_type, ENGRAVE, flags, HEADSTONE, u_roleplay::illiterate, is_ice(), MARK, moves, nomul(), pline(), QT_T_ENGRAVING, you::roleplay, flag::run, Something, surface(), and u.
Referenced by check_here(), look_here(), and pickup().
void rest_engravings | ( | int | fd ) |
void rloc_engr | ( | struct engr * | ep ) |
void save_engravings | ( | int | fd, |
int | mode | ||
) |
References bwrite(), dealloc_engr, engr::engr_lth, engr::engr_txt, head_engr, engr::nxt_engr, perform_bwrite, and release_data.
Referenced by savelev().
const char* surface | ( | int | x, |
int | y | ||
) |
References monst::data, DRAWBRIDGE_DOWN, IS_AIR, Is_airlevel, IS_ALTAR, is_animal, IS_DOOR, Is_earthlevel, IS_FOUNTAIN, IS_GRAVE, is_ice(), is_lava(), is_pool(), IS_ROOM, IS_WALL, Is_waterlevel, levl, SDOOR, rm::typ, u, Underwater, you::ustuck, you::ux, you::uy, and you::uz.
Referenced by able_to_loot(), break_armor(), canwearobj(), destroy_arm(), dig_check(), digactualhole(), dighole(), dodown(), doeat(), dofiretrap(), domove(), done(), dopickup(), dosit(), engrave(), fall_through(), float_down(), float_up(), flooreffects(), hitfloor(), hurtle(), kick_object(), lava_effects(), level_tele(), look_here(), mintrap(), mon_break_armor(), moverock(), peffects(), read_engr_at(), rottenfood(), seffects(), select_off(), throw_gold(), use_defensive(), use_grapple(), use_mirror(), use_misc(), use_pick_axe2(), use_stethoscope(), use_whip(), and zap_updown().
void u_wipe_engr | ( | int | cnt ) |
References can_reach_floor(), u, you::ux, you::uy, and wipe_engr_at().
Referenced by attack(), dokick(), domove(), moveloop(), throw_obj(), and use_pick_axe2().
References BURN, del_engr(), DUST, engr_at(), ENGR_BLOOD, engr::engr_txt, engr::engr_type, HEADSTONE, is_ice(), rn2(), and wipeout_text().
Referenced by dochug(), makeniche(), u_wipe_engr(), and zap_updown().
void wipeout_text | ( | char * | engr, |
int | cnt, | ||
unsigned | seed | ||
) |
const char* epitaphs[] [static] |
const char* random_mesg[] [static] |
Referenced by random_engraving().
struct { ... } rubouts[] [static] |
Referenced by wipeout_text().
NEARDATA const char styluses[] [static] |
{ ALL_CLASSES, ALLOW_NONE, TOOL_CLASS, WEAPON_CLASS, WAND_CLASS, GEM_CLASS, RING_CLASS, 0 }
char wipefrom |
Referenced by wipeout_text().
const char* wipeto |
Referenced by wipeout_text().