#include "hack.h"
Data Structures | |
struct | xlock_s |
Functions | |
STATIC_PTR int | NDECL (picklock) |
STATIC_PTR int | NDECL (forcelock) |
STATIC_DCL const char * | NDECL (lock_action) |
STATIC_DCL boolean | FDECL (obstructed,(int, int)) |
STATIC_DCL void | FDECL (chest_shatter_msg,(struct obj *)) |
boolean | picking_lock (int *x, int *y) |
boolean | picking_at (int x, int y) |
STATIC_OVL const char * | lock_action () |
STATIC_PTR int | picklock () |
STATIC_PTR int | forcelock () |
void | reset_pick () |
int | pick_lock (struct obj *pick, int rx, int ry) |
int | doforce () |
int | doopen () |
STATIC_OVL boolean | obstructed (int x, int y) |
int | doclose () |
boolean | boxlock (struct obj *obj, struct obj *otmp) |
boolean | doorlock (struct obj *otmp, int x, int y) |
STATIC_OVL void | chest_shatter_msg (struct obj *otmp) |
Variables | |
STATIC_VAR NEARDATA struct xlock_s | xlock |
References xlock_s::box, pline(), reset_pick(), SPE_KNOCK, SPE_POLYMORPH, SPE_WIZARD_LOCK, WAN_LOCKING, WAN_OPENING, WAN_POLYMORPH, and xlock.
Referenced by bhito().
STATIC_OVL void chest_shatter_msg | ( | struct obj * | otmp ) |
References An(), an(), Blind, Blinded, bottlename(), breathless, monst::data, FLESH, GLASS, haseyes, objects, PAPER, pline(), POTION_CLASS, potionbreathe(), singular(), VEGGY, WAX, WOOD, xname(), and youmonst.
Referenced by forcelock().
int doclose | ( | ) |
References A_CON, A_DEX, A_STR, ACURR, ACURRSTR, Blind, block_point(), D_BROKEN, D_CLOSED, D_ISOPEN, D_LOCKED, D_NODOOR, monst::data, DRAWBRIDGE_DOWN, you::dx, you::dy, exercise(), feel_location(), getdir(), IS_DOOR, levl, M_AP_FURNITURE, monst::m_ap_type, m_at, monst::mappearance, newsym(), nohands, obstructed(), pline(), Protection_from_shape_changers, rn2(), S_hcdoor, S_vcdoor, STEED, stumble_onto_mimic(), TRUE, TT_PIT, rm::typ, u, you::utrap, you::utraptype, you::ux, you::uy, verysmall, and youmonst.
int doforce | ( | ) |
References AKLYS, an(), xlock_s::box, xlock_s::chance, doname(), FLAIL, forcelock(), IRON_SAFE, is_blade, Is_box, is_weptool, KOPS, level, dlevel_t::objects, objects, objclass::oc_wldam, obj::oclass, otmp, obj::otyp, P_DAGGER, P_LANCE, xlock_s::picktyp, QBUFSZ, ROCK_CLASS, RUBBER_HOSE, safe_qbuf(), set_occupation(), simple_typename(), Sprintf, the(), u, xlock_s::usedtime, uwep, you::ux, you::uy, WEAPON_CLASS, xlock, xname(), and ynq.
int doopen | ( | ) |
References add_damage(), block_point(), cansee, D_BROKEN, D_CLOSED, D_ISOPEN, D_LOCKED, D_NODOOR, D_TRAPPED, DOOR, FALSE, flags, in_rooms(), Is_rogue_level, levl, m_at, mb_trapped(), MON_AT, newsym(), obstructed(), picking_at(), pline(), reset_pick(), SDOOR, SHOPBASE, flag::soundok, SPE_FORCE_BOLT, SPE_KNOCK, SPE_WIZARD_LOCK, stop_occupation(), t_at(), TRUE, rm::typ, u, unblock_point(), you::uz, flag::verbose, vis, vision_full_recalc, vision_recalc(), wake_nearto(), WAN_LOCKING, WAN_OPENING, and WAN_STRIKING.
Referenced by bhit(), and mbhit().
STATIC_DCL void FDECL | ( | chest_shatter_msg | , |
(struct obj *) | |||
) |
STATIC_DCL boolean FDECL | ( | obstructed | , |
(int, int) | |||
) |
STATIC_PTR int forcelock | ( | ) |
References A_DEX, A_STR, obj::age, xlock_s::box, xlock_s::chance, chest_shatter_msg(), obj::cobj, CORPSE, costly_spot(), currency(), monst::data, delobj(), exercise(), greatest_erosion, ICE_BOX, monstermoves, nohands, obfree(), obj_extract_self(), obj_resists(), obj::oclass, otmp, obj::otyp, obj::ox, obj::oy, xlock_s::picktyp, place_object(), pline(), POTION_CLASS, obj::quan, rn2(), shop_keeper(), obj::spe, stackobj(), start_corpse_timeout(), stolen_value(), the(), TRUE, u, xlock_s::usedtime, useup(), you::ushops, uwep, you::ux, you::uy, wake_nearby(), xlock, xname(), and youmonst.
Referenced by doforce().
STATIC_OVL const char* lock_action | ( | ) |
References xlock_s::box, CHEST, CREDIT_CARD, D_LOCKED, xlock_s::door, IRON_SAFE, LOCK_PICK, obj::otyp, xlock_s::picktyp, and xlock.
Referenced by pick_lock(), and picklock().
STATIC_PTR int NDECL | ( | picklock | ) |
STATIC_DCL const char* NDECL | ( | lock_action | ) |
STATIC_PTR int NDECL | ( | forcelock | ) |
STATIC_OVL boolean obstructed | ( | int | x, |
int | y | ||
) |
References canspotmon, FALSE, M_AP_FURNITURE, M_AP_OBJECT, monst::m_ap_type, m_at, map_invisible(), Monnam(), monst::mx, monst::my, OBJ_AT, pline(), Something, and TRUE.
Referenced by doclose(), and doorlock().
int pick_lock | ( | struct obj * | pick, |
int | rx, | ||
int | ry | ||
) |
References A_DEX, ACURR, an(), Blind, xlock_s::box, can_reach_floor(), canseemon, xlock_s::chance, CREDIT_CARD, D_BROKEN, D_ISOPEN, D_LOCKED, D_NODOOR, monst::data, doname(), xlock_s::door, you::dz, flags, get_adjacent_loc(), IRON_SAFE, Is_box, IS_DOOR, is_drawbridge_wall(), is_lava(), is_pool(), level, Levitation, levl, lock_action(), LOCK_PICK, M_AP_FURNITURE, M_AP_OBJECT, monst::m_ap_type, m_at, mon_nam(), mons, flag::move, nohands, dlevel_t::objects, otmp, obj::otyp, picklock(), xlock_s::picktyp, pline(), PM_ORACLE, PM_ROGUE, QBUFSZ, reset_pick(), Role_if, safe_qbuf(), set_occupation(), simple_typename(), SKELETON_KEY, Sprintf, STETHOSCOPE, the(), TOURIST, TT_PIT, rm::typ, u, Underwater, xlock_s::usedtime, you::utrap, you::utraptype, you::ux, you::uy, what, nhcoord::x, xlock, xname(), nhcoord::y, yn, ynq, and youmonst.
Referenced by doapply(), and its_dead().
boolean picking_at | ( | int | x, |
int | y | ||
) |
References xlock_s::door, levl, picklock(), and xlock.
Referenced by doorlock(), remove_damage(), and zap_over_floor().
boolean picking_lock | ( | int * | x, |
int * | y | ||
) |
References you::dx, you::dy, FALSE, picklock(), TRUE, u, you::ux, and you::uy.
Referenced by watch_on_duty().
STATIC_PTR int picklock | ( | ) |
References A_DEX, add_damage(), b_trapped(), xlock_s::box, xlock_s::chance, chest_trap(), D_BROKEN, D_CLOSED, D_ISOPEN, D_LOCKED, D_NODOOR, D_TRAPPED, monst::data, xlock_s::door, you::dx, you::dy, exercise(), FALSE, FINGER, in_rooms(), IRON_SAFE, levl, lock_action(), newsym(), nohands, obj::otyp, obj::ox, obj::oy, pline(), rn2(), SHOPBASE, TRUE, u, unblock_point(), xlock_s::usedtime, you::ux, you::uy, xlock, and youmonst.
Referenced by pick_lock(), picking_at(), and picking_lock().
void reset_pick | ( | ) |
References xlock_s::box, xlock_s::chance, xlock_s::door, xlock_s::picktyp, xlock_s::usedtime, and xlock.
Referenced by boxlock(), doorlock(), pick_lock(), reset_occupations(), and zap_over_floor().
Referenced by boxlock(), doforce(), forcelock(), lock_action(), pick_lock(), picking_at(), picklock(), and reset_pick().