Defines | Functions | Variables

mthrowu.c File Reference

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

Defines

#define URETREATING(x, y)   (distmin(u.ux,u.uy,x,y) > distmin(u.ux0,u.uy0,x,y))
#define POLE_LIM   5

Functions

STATIC_DCL int FDECL (drop_throw,(struct obj *, BOOLEAN_P, int, int))
int thitu (int tlev, int dam, struct obj *obj, const char *name)
STATIC_OVL int drop_throw (struct obj *obj, boolean ohit, int x, int y)
int ohitmon (struct monst *mtmp, struct obj *otmp, int range, boolean verbose)
void m_throw (struct monst *mon, int x, int y, int dx, int dy, int range, struct obj *obj)
void m_useup (struct monst *mon, struct obj *obj)
void thrwmu (struct monst *mtmp)
int spitmu (struct monst *mtmp, struct attack *mattk)
int breamu (struct monst *mtmp, struct attack *mattk)
boolean linedup (xchar ax, xchar ay, xchar bx, xchar by)
boolean lined_up (struct monst *mtmp)
struct objm_carrying (struct monst *mtmp, int type)
boolean hits_bars (struct obj **obj_p, int x, int y, int always_hit, int whodidit)

Variables

STATIC_OVL NEARDATA const char * breathwep []

Define Documentation

#define POLE_LIM   5

Referenced by thrwmu().

#define URETREATING (   x,
 
)    (distmin(u.ux,u.uy,x,y) > distmin(u.ux0,u.uy0,x,y))

Referenced by thrwmu().


Function Documentation

int breamu ( struct monst mtmp,
struct attack mattk 
)

References AD_ACID, AD_MAGM, AD_RBRE, AD_SLEE, buzz(), canseemon, flags, lined_up(), Monnam(), nomul(), pline(), rn2(), rnd(), sgn(), Sleep_resistance, flag::soundok, tbx, and tby.

Referenced by mattacku().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL int drop_throw ( struct obj obj,
boolean  ohit,
int  x,
int  y 
)

References CREAM_PIE, down_gate(), EGG, FALSE, flooreffects(), is_multigen, m_at, obfree(), passive_obj(), PIT, place_object(), rn2(), ROCK, ship_object(), SPIKED_PIT, stackobj(), t_at(), u, you::ux, you::uy, VENOM_CLASS, and youmonst.

Referenced by m_throw(), and ohitmon().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL int FDECL ( drop_throw  ,
(struct obj *, BOOLEAN_P, int, int)   
)
boolean hits_bars ( struct obj **  obj_p,
int  x,
int  y,
int  always_hit,
int  whodidit 
)
boolean lined_up ( struct monst mtmp )

References linedup().

Referenced by breamu(), buzzmu(), find_offensive(), m_move(), spitmu(), and thrwmu().

Here is the call graph for this function:

Here is the caller graph for this function:

boolean linedup ( xchar  ax,
xchar  ay,
xchar  bx,
xchar  by 
)

References BOLT_LIM, clear_path(), couldsee, distmin(), FALSE, tbx, tby, TRUE, u, you::ux, and you::uy.

Referenced by ghod_hitsu(), and lined_up().

Here is the call graph for this function:

Here is the caller graph for this function:

struct obj* m_carrying ( struct monst mtmp,
int  type 
) [read]

References obj::nobj, otmp, and obj::otyp.

Referenced by dog_move(), find_defensive(), m_move(), mfndpos(), mon_wield_item(), move_special(), and select_rwep().

Here is the caller graph for this function:

void m_throw ( struct monst mon,
int  x,
int  y,
int  dx,
int  dy,
int  range,
struct obj obj 
)
void m_useup ( struct monst mon,
struct obj obj 
)
int ohitmon ( struct monst mtmp,
struct obj otmp,
int  range,
boolean  verbose 
)
int spitmu ( struct monst mtmp,
struct attack mattk 
)

References ACID_VENOM, AD_ACID, AD_BLND, AD_DRST, BLINDING_VENOM, BOLT_LIM, canseemon, distmin(), FALSE, flags, lined_up(), m_throw(), mksobj(), mon_nam(), Monnam(), nomul(), otmp, pline(), rn2(), s_suffix(), sgn(), flag::soundok, tbx, tby, and TRUE.

Referenced by mattacku().

Here is the call graph for this function:

Here is the caller graph for this function:

int thitu ( int  tlev,
int  dam,
struct obj obj,
const char *  name 
)
void thrwmu ( struct monst mtmp )

Variable Documentation

STATIC_OVL NEARDATA const char* breathwep[]
Initial value:
 {
                                "fragments",
                                "fire",
                                "frost",
                                "sleep gas",
                                "a disintegration blast",
                                "lightning",
                                "poison gas",
                                "acid",
                                "strange breath #8",
                                "strange breath #9"
}