#include "hack.h"
#include "region.h"
Data Structures | |
struct | tmp_glyph |
struct | gbuf_entry |
Defines | |
#define | _map_location(x, y, show) |
#define | DETECTED 2 |
#define | PHYSICALLY_SEEN 1 |
#define | is_worm_tail(mon) ((mon) && ((x != (mon)->mx) || (y != (mon)->my))) |
#define | reset_glyph_bbox() |
#define | more_than_one(x, y, a, b, c) (((a) && ((b)|(c))) || ((b) && ((a)|(c))) || ((c) && ((a)|(b)))) |
#define | sign(z) ((z) < 0 ? -1 : ((z) > 0 ? 1 : 0)) |
#define | T_d 0 |
#define | T_l 1 |
#define | T_u 2 |
#define | T_r 3 |
#define | T_stone 0 |
#define | T_tlcorn 1 |
#define | T_trcorn 2 |
#define | T_hwall 3 |
#define | T_tdwall 4 |
#define | C_bl 0 |
#define | C_tl 1 |
#define | C_tr 2 |
#define | C_br 3 |
#define | C_trcorn 0 |
#define | C_brcorn 1 |
#define | C_blcorn 2 |
#define | C_tlwall 3 |
#define | C_tuwall 4 |
#define | C_crwall 5 |
#define | only(sv, bits) (((sv) & (bits)) && ! ((sv) & ~(bits))) |
#define | set_corner(idx, lev, which, outer, inner, name) |
Functions | |
STATIC_DCL void | FDECL (display_monster,(XCHAR_P, XCHAR_P, struct monst *, int, XCHAR_P)) |
STATIC_DCL int | FDECL (swallow_to_glyph,(int, int)) |
STATIC_DCL void | FDECL (display_warning,(struct monst *)) |
STATIC_DCL int | FDECL (check_pos,(int, int, int)) |
STATIC_DCL int | FDECL (set_twall,(int, int, int, int, int, int, int, int)) |
STATIC_DCL int | FDECL (set_wall,(int, int, int)) |
STATIC_DCL int | FDECL (set_corn,(int, int, int, int, int, int, int, int)) |
STATIC_DCL int | FDECL (set_crosswall,(int, int)) |
STATIC_DCL void | FDECL (set_seenv,(struct rm *, int, int, int, int)) |
STATIC_DCL void | FDECL (t_warn,(struct rm *)) |
STATIC_DCL int | FDECL (wall_angle,(struct rm *)) |
void | magic_map_background (xchar x, xchar y, int show) |
void | map_background (xchar x, xchar y, int show) |
void | map_trap (struct trap *trap, int show) |
void | map_object (struct obj *obj, int show) |
void | map_invisible (xchar x, xchar y) |
void | unmap_object (int x, int y) |
void | map_location (int x, int y, int show) |
STATIC_OVL void | display_monster (xchar x, xchar y, struct monst *mon, int sightflags, xchar worm_tail) |
STATIC_OVL void | display_warning (struct monst *mon) |
void | feel_location (xchar x, xchar y) |
void | newsym (int x, int y) |
void | shieldeff (xchar x, xchar y) |
void | tmp_at (int x, int y) |
void | swallowed (int first) |
void | under_water (int mode) |
void | under_ground (int mode) |
void | see_monsters () |
void | set_mimic_blocking () |
void | see_objects () |
void | see_traps () |
void | curs_on_u () |
int | doredraw () |
void | docrt () |
void | show_glyph (int x, int y, int glyph) |
void | clear_glyph_buffer () |
void | row_refresh (int start, int stop, int y) |
void | cls () |
void | flush_screen (int cursor_on_u) |
int | back_to_glyph (xchar x, xchar y) |
STATIC_OVL int | swallow_to_glyph (int mnum, int loc) |
int | zapdir_to_glyph (int dx, int dy, int beam_type) |
int | glyph_at (xchar x, xchar y) |
STATIC_OVL int | check_pos (int x, int y, int which) |
STATIC_OVL int | set_twall (int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3) |
STATIC_OVL int | set_wall (int x, int y, int horiz) |
STATIC_OVL int | set_corn (int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4) |
STATIC_OVL int | set_crosswall (int x, int y) |
void | set_wall_state () |
STATIC_OVL void | set_seenv (struct rm *lev, int x0, int y0, int x, int y) |
STATIC_OVL void | t_warn (struct rm *lev) |
STATIC_OVL int | wall_angle (struct rm *lev) |
Variables | |
static struct tmp_glyph | tgfirst |
static gbuf_entry | gbuf [ROWNO][COLNO] |
static char | gbuf_start [ROWNO] |
static char | gbuf_stop [ROWNO] |
static gbuf_entry | nul_gbuf = { 0, cmap_to_glyph(S_stone) } |
unsigned char | seenv_matrix [3][3] |
static const int | wall_matrix [4][5] |
static const int | cross_matrix [4][6] |
#define _map_location | ( | x, | |
y, | |||
show | |||
) |
{ \ register struct obj *obj; \ register struct trap *trap; \ \ if ((obj = vobj_at(x,y)) && !covers_objects(x,y)) \ map_object(obj,show); \ else if ((trap = t_at(x,y)) && trap->tseen && !covers_traps(x,y)) \ map_trap(trap,show); \ else \ map_background(x,y,show); \ }
Referenced by feel_location(), map_location(), and newsym().
#define C_bl 0 |
Referenced by wall_angle().
#define C_blcorn 2 |
Referenced by wall_angle().
#define C_br 3 |
Referenced by wall_angle().
#define C_brcorn 1 |
Referenced by wall_angle().
#define C_crwall 5 |
Referenced by wall_angle().
#define C_tl 1 |
Referenced by wall_angle().
#define C_tlwall 3 |
Referenced by wall_angle().
#define C_tr 2 |
Referenced by wall_angle().
#define C_trcorn 0 |
Referenced by wall_angle().
#define C_tuwall 4 |
Referenced by wall_angle().
#define DETECTED 2 |
Referenced by display_monster(), feel_location(), and newsym().
Referenced by feel_location(), and newsym().
#define more_than_one | ( | x, | |
y, | |||
a, | |||
b, | |||
c | |||
) | (((a) && ((b)|(c))) || ((b) && ((a)|(c))) || ((c) && ((a)|(b)))) |
Referenced by dip(), set_twall(), and set_wall().
#define only | ( | sv, | |
bits | |||
) | (((sv) & (bits)) && ! ((sv) & ~(bits))) |
Referenced by wall_angle().
#define PHYSICALLY_SEEN 1 |
Referenced by display_monster(), feel_location(), and newsym().
#define reset_glyph_bbox | ( | ) |
{ \ int i; \ \ for (i = 0; i < ROWNO; i++) { \ gbuf_start[i] = COLNO-1; \ gbuf_stop[i] = 0; \ } \ }
Referenced by clear_glyph_buffer(), and flush_screen().
#define set_corner | ( | idx, | |
lev, | |||
which, | |||
outer, | |||
inner, | |||
name | |||
) |
switch ((lev)->wall_info & WM_MASK) { \ case 0: idx = which; break; \ case WM_C_OUTER: idx = seenv & (outer) ? which : S_stone; break; \ case WM_C_INNER: idx = seenv & ~(inner) ? which : S_stone; break; \ default: \ impossible("wall_angle: unknown %s mode %d", name, \ (lev)->wall_info & WM_MASK); \ idx = S_stone; \ break; \ }
Referenced by wall_angle().
#define sign | ( | z ) | ((z) < 0 ? -1 : ((z) > 0 ? 1 : 0)) |
Referenced by set_seenv().
#define T_d 0 |
Referenced by wall_angle().
#define T_hwall 3 |
Referenced by wall_angle().
#define T_l 1 |
Referenced by wall_angle().
#define T_r 3 |
Referenced by wall_angle().
#define T_stone 0 |
Referenced by wall_angle().
#define T_tdwall 4 |
Referenced by wall_angle().
#define T_tlcorn 1 |
Referenced by wall_angle().
#define T_trcorn 2 |
Referenced by wall_angle().
#define T_u 2 |
Referenced by wall_angle().
References AIR, ALTAR, BLCORNER, BRCORNER, cansee, CLOUD, cmap_to_glyph, CORR, CROSSWALL, D_BROKEN, D_ISOPEN, DB_FLOOR, DB_ICE, DB_LAVA, DB_MOAT, DB_UNDER, DBWALL, DOOR, DRAWBRIDGE_DOWN, DRAWBRIDGE_UP, flags, dlevel_t::flags, FOUNTAIN, GRAVE, HWALL, ICE, IRONBARS, LA_DOWN, LADDER, LAVAPOOL, level, levl, flag::lit_corridor, MOAT, POOL, ROOM, S_air, S_altar, S_bars, S_cloud, S_corr, S_darkroom, S_dnladder, S_dnstair, S_fountain, S_grave, S_hcdbridge, S_hcdoor, S_hodbridge, S_hodoor, S_ice, S_lava, S_litcorr, S_ndoor, S_pool, S_room, S_sink, S_stone, S_throne, S_tree, S_upladder, S_upstair, S_vcdbridge, S_vcdoor, S_vodbridge, S_vodoor, S_water, SCORR, SDOOR, rm::seenv, SINK, STAIRS, STONE, TDWALL, THRONE, TLCORNER, TLWALL, TRCORNER, TREE, TRWALL, TUWALL, rm::typ, VWALL, wall_angle(), and WATER.
Referenced by epathto(), getpos(), magic_map_background(), and map_background().
STATIC_OVL int check_pos | ( | int | x, |
int | y, | ||
int | which | ||
) |
References CORR, IS_ROCK, isok(), levl, and SCORR.
Referenced by set_corn(), set_crosswall(), set_twall(), and set_wall().
void clear_glyph_buffer | ( | ) |
References COLNO, nul_gbuf, reset_glyph_bbox, and ROWNO.
Referenced by cls(), and display_gamewindows().
void cls | ( | ) |
References flag::botlx, clear_glyph_buffer(), clear_nhwindow, display_nhwindow, FALSE, flags, WIN_MAP, and WIN_MESSAGE.
Referenced by docrt(), find_trap(), food_detect(), gold_detect(), monster_detect(), object_detect(), swallowed(), trap_detect(), under_ground(), under_water(), and you_aggravate().
void curs_on_u | ( | ) |
References flush_screen().
Referenced by cpostfx(), domove(), done1(), done2(), explode(), launch_obj(), and savelife().
STATIC_OVL void display_monster | ( | xchar | x, |
xchar | y, | ||
struct monst * | mon, | ||
int | sightflags, | ||
xchar | worm_tail | ||
) |
References cmap_to_glyph, obj::corpsenm, DETECTED, detected_mon_to_glyph, detected_monnum_to_glyph, rm::glyph, Hallucination, levl, M_AP_FURNITURE, M_AP_MONSTER, M_AP_NOTHING, M_AP_OBJECT, map_object(), mon_to_glyph, monnum_to_glyph, obj::otyp, obj::ox, obj::oy, pet_to_glyph, petnum_to_glyph, PHYSICALLY_SEEN, PM_LONG_WORM_TAIL, PM_TENGU, Protection_from_shape_changers, sensemon, show_glyph(), and what_mon.
Referenced by feel_location(), and newsym().
STATIC_OVL void display_warning | ( | struct monst * | mon ) |
References Hallucination, mon_to_glyph, mon_warning, monst::mx, rn1, show_glyph(), WARNCOUNT, and warning_to_glyph.
Referenced by newsym().
void docrt | ( | ) |
References flag::botlx, cls(), cmap_to_glyph, COLNO, flags, rm::glyph, Is_waterlevel, levl, ROWNO, S_stone, see_monsters(), show_glyph(), swallowed(), u, under_ground(), under_water(), Underwater, you::ux, you::uz, vision_recalc(), trap::x, and trap::y.
Referenced by boulder_hits_pool(), do_mapping(), do_vicinity_map(), dorecover(), doredraw(), find_trap(), food_detect(), forget(), gold_detect(), goto_level(), monster_detect(), newgame(), object_detect(), rloc_to(), spoteffects(), teleds(), trap_detect(), unstuck(), you_aggravate(), and zap_over_floor().
int doredraw | ( | ) |
STATIC_DCL int FDECL | ( | swallow_to_glyph | , |
(int, int) | |||
) |
STATIC_DCL int FDECL | ( | set_crosswall | , |
(int, int) | |||
) |
STATIC_DCL int FDECL | ( | check_pos | , |
(int, int, int) | |||
) |
STATIC_DCL void FDECL | ( | set_seenv | , |
(struct rm *, int, int, int, int) | |||
) |
STATIC_DCL void FDECL | ( | display_monster | , |
(XCHAR_P, XCHAR_P, struct monst *, int, XCHAR_P) | |||
) |
STATIC_DCL int FDECL | ( | set_twall | , |
(int, int, int, int, int, int, int, int) | |||
) |
STATIC_DCL void FDECL | ( | t_warn | , |
(struct rm *) | |||
) |
STATIC_DCL int FDECL | ( | wall_angle | , |
(struct rm *) | |||
) |
STATIC_DCL void FDECL | ( | display_warning | , |
(struct monst *) | |||
) |
STATIC_DCL int FDECL | ( | set_wall | , |
(int, int, int) | |||
) |
STATIC_DCL int FDECL | ( | set_corn | , |
(int, int, int, int, int, int, int, int) | |||
) |
References _map_location, BC_BALL, BC_CHAIN, you::bc_felt, BOULDER, cansee, carried, cmap_to_glyph, CORR, D_CLOSED, D_LOCKED, DETECTED, display_monster(), rm::glyph, glyph_is_invisible, Is_airlevel, IS_DOOR, IS_POOL, is_pool(), IS_ROCK, IS_ROOM, Is_waterlevel, is_worm_tail, level, Levitation, levl, m_at, map_background(), map_object(), mon, dlevel_t::objects, objnum_to_glyph, obj::ox, obj::oy, PHYSICALLY_SEEN, Punished, ROOM, S_corr, S_darkroom, S_litcorr, S_room, S_stone, rm::seenv, sensemon, set_seenv(), show_glyph(), sobj_at(), tp_sensemon, rm::typ, u, uball, uchain, Underwater, you::ux, you::uy, and you::uz.
Referenced by activate_statue_trap(), dig(), doclose(), dokick(), dosearch0(), find_trap(), mkcavepos(), moverock(), newsym(), test_move(), and use_stethoscope().
void flush_screen | ( | int | cursor_on_u ) |
References bot(), flag::botl, flag::botlx, curs, display_nhwindow, FALSE, flags, gbuf_entry::glyph, gbuf_entry::new, print_glyph, reset_glyph_bbox, ROWNO, u, you::ux, you::uy, and WIN_MAP.
Referenced by check_here(), check_tutorial_message(), curs_on_u(), do_mapping(), do_vicinity_map(), getpos(), goto_level(), hurtle_step(), mattacku(), mkcavearea(), mkinvokearea(), newgame(), parse(), shieldeff(), tmp_at(), and tutorial_redisplay().
References cmap_to_glyph, gbuf_entry::glyph, and S_room.
Referenced by attack_checks(), check_map_spot(), check_tutorial_farlook(), do_look(), getpos(), lookat(), maybe_tutorial(), and see_traps().
References back_to_glyph(), cansee, cmap_to_glyph, CORR, dlevel_t::flags, rm::glyph, level, levl, ROOM, S_corr, S_darkroom, S_litcorr, S_room, show_glyph(), and rm::typ.
Referenced by findone(), and show_map_spot().
References back_to_glyph(), dlevel_t::flags, rm::glyph, level, levl, and show_glyph().
Referenced by feel_location(), flooreffects(), sokoban_detect(), and unmap_object().
References dlevel_t::flags, GLYPH_INVISIBLE, level, levl, show_glyph(), u, you::ux, and you::uy.
Referenced by attack(), attack_checks(), beg(), bhit(), bhitm(), buzz(), dochat(), dokick(), domonnoise(), dosearch0(), drop_boulder_on_monster(), explode(), findone(), flash_hits_mon(), hitmm(), hitmu(), Mb_hit(), mbhit(), mbhitm(), missmm(), missmu(), moverock(), newsym(), obstructed(), shkcatch(), use_offensive(), use_stethoscope(), use_whip(), and you_aggravate().
void map_location | ( | int | x, |
int | y, | ||
int | show | ||
) |
References _map_location.
Referenced by clear_fcorr(), and start_engulf().
void map_object | ( | struct obj * | obj, |
int | show | ||
) |
References dlevel_t::flags, rm::glyph, level, levl, obj_to_glyph, and show_glyph().
Referenced by display_monster(), dropy(), feel_location(), food_detect(), gold_detect(), move_bc(), object_detect(), sense_trap(), and sokoban_detect().
void map_trap | ( | struct trap * | trap, |
int | show | ||
) |
References dlevel_t::flags, rm::glyph, level, levl, show_glyph(), and trap_to_glyph.
Referenced by find_trap(), sense_trap(), sokoban_detect(), and unmap_object().
void newsym | ( | int | x, |
int | y | ||
) |
References _map_location, ACCESSIBLE, BEAR_TRAP, cansee, cmap_to_glyph, CORR, instance_flags::dark_room, Detect_monsters, DETECTED, display_monster(), display_self, display_warning(), feel_location(), rm::glyph, glyph_is_invisible, iflags, in_mklev, is_pool(), Is_waterlevel, is_worm_tail, levl, m_at, map_invisible(), mon, mon_visible, mon_warning, NO_TRAP, PHYSICALLY_SEEN, PIT, ROOM, S_corr, S_darkroom, S_litcorr, S_room, See_invisible, see_with_infrared, senseself, show_glyph(), show_region(), SPIKED_PIT, t_at(), tp_sensemon, TRUE, rm::typ, u, Underwater, you::ux, you::uy, you::uz, visible_region_at(), and WEB.
Referenced by abuse_dog(), activate_statue_trap(), add_region(), arti_invoke(), attack_checks(), bhit(), bhitm(), bhito(), boulder_hits_pool(), burn_object(), bury_objs(), buzz(), charm_snakes(), clear_bypasses(), Cloak_off(), Cloak_on(), clone_mon(), clonewiz(), close_drawbridge(), cnv_trap_obj(), cpostfx(), deferred_goto(), del_sokoprize(), delobj(), demon_talk(), destroy_drawbridge(), dig(), dig_up_grave(), digactualhole(), dipfountain(), disarm_holdingtrap(), disarm_squeaky_board(), do_earthquake(), do_flood(), dochug(), doclose(), dofindgem(), dog_eat(), dog_invent(), dog_move(), dohide(), dokick(), domove(), doorlock(), dosacrifice(), dosearch0(), dosit(), dospinweb(), dotele(), dotrap(), drag_ball(), drinkfountain(), drop_ball(), drop_boulder_on_monster(), drop_boulder_on_player(), dropy(), dryup(), eataccessory(), eatmdone(), end_engulf(), expels(), explode(), fig_transform(), find_trap(), findone(), float_down(), flooreffects(), food_detect(), fracture_rock(), gd_move(), gold_detect(), grddead(), grow_up(), gulpmm(), gulpmu(), gush(), hatch_egg(), hitmu(), hurtle_step(), invault(), keepdogs(), kick_monster(), kick_object(), kickdmg(), launch_obj(), level_tele_trap(), m_detach(), m_lose_armor(), m_move(), make_corpse(), make_familiar(), makemon(), mattackm(), mattacku(), mdig_tunnel(), meatmetal(), meatobj(), melt_ice(), mhurtle_step(), migrate_to_level(), mintrap(), mkcavearea(), mkcavepos(), mkinvokearea(), mkinvpos(), mkroll_launch(), mon_set_minvis(), monstone(), move_bc(), move_gold(), move_into_trap(), move_special(), movebubbles(), moverock(), movobj(), mpickgold(), mpickstuff(), mv_bubble(), new_were(), newcham(), nh_timeout(), object_detect(), open_drawbridge(), openone(), peffects(), pick_obj(), picklock(), pickup(), place_worm_tail_randomly(), polyman(), polymon(), possibly_unwield(), punish(), readobjnam(), relobj(), remove_region(), remove_worm(), repair_damage(), reset_hostility(), restartcham(), revive(), Ring_off_or_gone(), Ring_on(), rloc_to(), rloco(), rot_corpse(), savebones(), scatter(), see_monsters(), see_objects(), see_traps(), see_wsegs(), seemimic(), seetrap(), set_bc(), set_trap(), shieldeff(), ship_object(), show_map_spot(), stealgold(), still_chewing(), stock_room(), tamedog(), tele_trap(), teleds(), thitm(), throw_gold(), throwit(), tmp_at(), toss_wsegs(), trap_detect(), under_ground(), under_water(), undo_flood(), unearth_objs(), unplacebc(), unpunish(), untrap(), update_mon_intrinsics(), use_defensive(), use_grapple(), use_misc(), use_stethoscope(), vision_recalc(), wakeup(), wallify_vault(), wary_dog(), worm_move(), xkilled(), you_aggravate(), zap_dig(), zap_over_floor(), zap_updown(), and zapyourself().
void row_refresh | ( | int | start, |
int | stop, | ||
int | y | ||
) |
References cmap_to_glyph, print_glyph, S_stone, and WIN_MAP.
void see_monsters | ( | ) |
References DEADMONSTER, fmon, mon, monst::mx, monst::my, newsym(), monst::nmon, see_wsegs(), u, you::ux, and you::uy.
Referenced by Amulet_off(), attrcurse(), Blindf_off(), Blindf_on(), docrt(), eataccessory(), givit(), Helmet_off(), make_blinded(), make_hallucinated(), moveloop(), newman(), nh_timeout(), peffects(), pleased(), polyman(), polymon(), postadjabil(), Ring_off_or_gone(), Ring_on(), set_artifact_intrinsic(), teleds(), and xkilled().
void see_objects | ( | ) |
References fobj, newsym(), obj::nobj, obj::ox, obj::oy, and vobj_at.
Referenced by make_hallucinated(), moveloop(), Ring_off_or_gone(), and Ring_on().
void see_traps | ( | ) |
References ftrap, glyph_at(), glyph_is_trap, newsym(), trap::ntrap, trap::tx, and trap::ty.
Referenced by make_hallucinated(), and moveloop().
STATIC_OVL int set_corn | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | x3, | ||
int | y3, | ||
int | x4, | ||
int | y4 | ||
) |
References check_pos(), WM_C_INNER, and WM_C_OUTER.
Referenced by set_wall_state().
STATIC_OVL int set_crosswall | ( | int | x, |
int | y | ||
) |
References check_pos(), WM_X_BL, WM_X_BLTR, WM_X_BR, WM_X_TL, WM_X_TLBR, and WM_X_TR.
Referenced by set_wall_state().
void set_mimic_blocking | ( | ) |
References block_point(), BOULDER, DEADMONSTER, fmon, M_AP_FURNITURE, M_AP_OBJECT, monst::m_ap_type, monst::mappearance, mon, monst::mx, monst::my, monst::nmon, S_hcdoor, S_vcdoor, See_invisible, and unblock_point().
Referenced by eataccessory(), nh_timeout(), peffects(), Ring_off_or_gone(), and Ring_on().
STATIC_OVL void set_seenv | ( | struct rm * | lev, |
int | x0, | ||
int | y0, | ||
int | x, | ||
int | y | ||
) |
References rm::seenv, and sign.
Referenced by feel_location().
STATIC_OVL int set_twall | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | x3, | ||
int | y3 | ||
) |
References check_pos(), more_than_one, WM_T_BL, WM_T_BR, and WM_T_LONG.
Referenced by set_wall_state().
STATIC_OVL int set_wall | ( | int | x, |
int | y, | ||
int | horiz | ||
) |
References check_pos(), more_than_one, WM_W_BOTTOM, WM_W_LEFT, WM_W_RIGHT, and WM_W_TOP.
Referenced by set_wall_state().
void set_wall_state | ( | ) |
References BLCORNER, BRCORNER, COLNO, CROSSWALL, HWALL, levl, MAX_TYPE, pline(), ROWNO, SDOOR, set_corn(), set_crosswall(), set_twall(), set_wall(), TDWALL, TLCORNER, TLWALL, TRCORNER, TRWALL, TUWALL, rm::typ, VWALL, and WM_MASK.
Referenced by mklev().
References cansee, cmap_to_glyph, delay_output, flags, flush_screen(), newsym(), SHIELD_COUNT, shield_static, show_glyph(), and flag::sparkle.
Referenced by bhitm(), buzz(), cast_cleric_spell(), cast_wizard_spell(), castmu(), chest_trap(), cursed_book(), damageum(), dofiretrap(), dotrap(), explum(), god_zaps_you(), gulpmu(), hitmu(), level_tele_trap(), Mb_hit(), mbhitm(), mdamagem(), mintrap(), passive(), passiveum(), poisoned(), resist(), rndcurse(), seffects(), sleep_monst(), tele_trap(), use_offensive(), zapyourself(), zhitm(), and zhitu().
void show_glyph | ( | int | x, |
int | y, | ||
int | glyph | ||
) |
References gbuf_entry::glyph, GLYPH_BODY_OFF, GLYPH_CMAP_OFF, GLYPH_DETECT_OFF, GLYPH_EXPLODE_OFF, GLYPH_INVIS_OFF, GLYPH_OBJ_OFF, GLYPH_PET_OFF, GLYPH_RIDDEN_OFF, GLYPH_SWALLOW_OFF, GLYPH_WARNING_OFF, GLYPH_ZAP_OFF, isok(), MAX_GLYPH, and gbuf_entry::new.
Referenced by detect_wsegs(), display_monster(), display_warning(), docrt(), explode(), feel_location(), magic_map_background(), map_background(), map_invisible(), map_object(), map_trap(), monster_detect(), newsym(), shieldeff(), show_region(), swallowed(), tmp_at(), under_water(), and you_aggravate().
STATIC_OVL int swallow_to_glyph | ( | int | mnum, |
int | loc | ||
) |
References GLYPH_SWALLOW_OFF, S_sw_br, S_sw_tl, and what_mon.
Referenced by swallowed().
void swallowed | ( | int | first ) |
References cls(), cmap_to_glyph, monst::data, display_self, isok(), monsndx(), S_stone, S_sw_bc, S_sw_bl, S_sw_br, S_sw_ml, S_sw_mr, S_sw_tc, S_sw_tl, S_sw_tr, show_glyph(), swallow_to_glyph(), u, you::ustuck, you::ux, and you::uy.
Referenced by docrt(), gulpmu(), m_move(), make_hallucinated(), moveloop(), and newcham().
STATIC_OVL void t_warn | ( | struct rm * | lev ) |
void tmp_at | ( | int | x, |
int | y | ||
) |
References cansee, DISP_ALWAYS, DISP_BEAM, DISP_CHANGE, DISP_END, DISP_FLASH, DISP_FREEMEM, flush_screen(), tmp_glyph::glyph, newsym(), tmp_glyph::prev, tmp_glyph::saved, show_glyph(), tmp_glyph::sidx, tmp_glyph::style, tgfirst, nhcoord::x, and nhcoord::y.
Referenced by bhit(), boomhit(), buzz(), end_engulf(), explode(), freedynamicdata(), launch_obj(), m_throw(), sho_obj_return_to_u(), start_engulf(), throwit(), and zap_dig().
void under_ground | ( | int | mode ) |
References cls(), FALSE, newsym(), TRUE, u, you::ux, and you::uy.
Referenced by docrt(), food_detect(), gold_detect(), monster_detect(), moveloop(), object_detect(), and trap_detect().
void under_water | ( | int | mode ) |
References Blind, cls(), cmap_to_glyph, FALSE, is_pool(), Is_waterlevel, isok(), newsym(), S_stone, show_glyph(), TRUE, u, you::ux, you::uy, and you::uz.
Referenced by docrt(), drown(), food_detect(), gold_detect(), monster_detect(), moveloop(), object_detect(), and trap_detect().
void unmap_object | ( | int | x, |
int | y | ||
) |
References cmap_to_glyph, covers_traps, dlevel_t::flags, rm::glyph, level, levl, map_background(), map_trap(), ROOM, S_darkroom, S_room, S_stone, t_at(), and rm::typ.
Referenced by bhit(), buzz(), clear_stale_map(), dokick(), domove(), dosearch0(), explode(), findone(), kick_monster(), monstone(), moverock(), peffects(), and use_stethoscope().
STATIC_OVL int wall_angle | ( | struct rm * | lev ) |
References BLCORNER, BRCORNER, C_bl, C_blcorn, C_br, C_brcorn, C_crwall, C_tl, C_tlwall, C_tr, C_trcorn, C_tuwall, CROSSWALL, horiz, HWALL, only, S_blcorn, S_brcorn, S_crwall, S_hwall, S_stone, S_tdwall, S_tlcorn, S_tlwall, S_trcorn, S_trwall, S_tuwall, S_vwall, SDOOR, rm::seenv, set_corner, SV0, SV1, SV2, SV3, SV4, SV5, SV6, SV7, T_d, T_hwall, T_l, T_r, T_stone, T_tdwall, T_tlcorn, T_trcorn, T_u, t_warn(), TDWALL, TLCORNER, TLWALL, TRCORNER, TRWALL, TUWALL, VWALL, WM_MASK, WM_T_BL, WM_T_BR, WM_T_LONG, WM_X_BL, WM_X_BLTR, WM_X_BR, WM_X_TL, WM_X_TLBR, and WM_X_TR.
Referenced by back_to_glyph().
int zapdir_to_glyph | ( | int | dx, |
int | dy, | ||
int | beam_type | ||
) |
References GLYPH_ZAP_OFF, and NUM_ZAP.
Referenced by buzz().
const int cross_matrix[4][6] [static] |
gbuf_entry gbuf[ROWNO][COLNO] [static] |
char gbuf_start[ROWNO] [static] |
char gbuf_stop[ROWNO] [static] |
gbuf_entry nul_gbuf = { 0, cmap_to_glyph(S_stone) } [static] |
Referenced by clear_glyph_buffer().
unsigned char seenv_matrix[3][3] |