Data Structures | Functions | Variables

lock.c File Reference

#include "hack.h"
Include dependency graph for lock.c:

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

Function Documentation

boolean boxlock ( struct obj obj,
struct obj otmp 
)

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

int doclose (  )
int doforce (  )
int doopen (  )
boolean doorlock ( struct obj otmp,
int  x,
int  y 
)
STATIC_DCL void FDECL ( chest_shatter_msg  ,
(struct obj *)   
)
STATIC_DCL boolean FDECL ( obstructed  ,
(int, int)   
)
STATIC_PTR int forcelock (  )
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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

int pick_lock ( struct obj pick,
int  rx,
int  ry 
)
boolean picking_at ( int  x,
int  y 
)

References xlock_s::door, levl, picklock(), and xlock.

Referenced by doorlock(), remove_damage(), and zap_over_floor().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_PTR int picklock (  )
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().

Here is the caller graph for this function:


Variable Documentation

STATIC_VAR NEARDATA struct xlock_s xlock