Functions

dog.c File Reference

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

Functions

STATIC_DCL int NDECL (pet_type)
void initedog (struct monst *mtmp)
STATIC_OVL int pet_type ()
struct monstmake_familiar (struct obj *otmp, xchar x, xchar y, boolean quietly)
struct monstmakedog ()
void update_mlstmv ()
void losedogs ()
void mon_arrive (struct monst *mtmp, boolean with_you)
void mon_catchup_elapsed_time (struct monst *mtmp, long nmv)
void keepdogs (boolean pets_only)
void migrate_to_level (struct monst *mtmp, xchar tolev, xchar xyloc, coord *cc)
int dogfood (struct monst *mon, struct obj *obj)
struct monsttamedog (struct monst *mtmp, struct obj *obj)
void wary_dog (struct monst *mtmp, boolean was_dead)
void abuse_dog (struct monst *mtmp)

Function Documentation

void abuse_dog ( struct monst mtmp )

References Aggravate_monster, Conflict, EDOG, growl(), m_unleash(), monst::mtame, newsym(), rn2(), TRUE, and yelp().

Referenced by domove(), hmon_hitmon(), kickdmg(), and try_disarm().

Here is the call graph for this function:

Here is the caller graph for this function:

int dogfood ( struct monst mon,
struct obj obj 
)
void initedog ( struct monst mtmp )

References EDOG, is_domestic, monstermoves, monst::mtame, and set_malign().

Referenced by cloneu(), make_familiar(), makedog(), and tamedog().

Here is the call graph for this function:

Here is the caller graph for this function:

void keepdogs ( boolean  pets_only )
void losedogs (  )

References d_level::dlevel, d_level::dnum, FALSE, migrating_mons, mon_arrive(), monst::mux, monst::muy, mydogs, monst::nmon, TRUE, u, and you::uz.

Referenced by goto_level().

Here is the call graph for this function:

Here is the caller graph for this function:

struct monst* make_familiar ( struct obj otmp,
xchar  x,
xchar  y,
boolean  quietly 
) [read]
struct monst* makedog (  ) [read]
void migrate_to_level ( struct monst mtmp,
xchar  tolev,
xchar  xyloc,
coord cc 
)
void mon_arrive ( struct monst mtmp,
boolean  with_you 
)
void mon_catchup_elapsed_time ( struct monst mtmp,
long  nmv 
)

References carnivorous, EDOG, FALSE, herbivorous, edog::hungrytime, if(), LARGEST_INT, m_unleash(), monstermoves, regenerates, and rn2().

Referenced by getlev(), mon_arrive(), and resurrect().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL int NDECL ( pet_type   )
STATIC_OVL int pet_type (  )

References NON_PM, Role::petnum, PM_BABY_CROCODILE, PM_CAVEMAN, PM_KITTEN, PM_LITTLE_DOG, PM_MONKEY, PM_RANGER, PM_ROGUE, PM_TOURIST, PM_WINTER_WOLF_CUB, PM_WOLF, preferred_pet, rn2(), Role_if, and urole.

Referenced by make_familiar(), and makedog().

Here is the call graph for this function:

Here is the caller graph for this function:

struct monst* tamedog ( struct monst mtmp,
struct obj obj 
) [read]
void update_mlstmv (  )

References DEADMONSTER, fmon, monst::mlstmv, mon, monstermoves, and monst::nmon.

Referenced by goto_level(), and savebones().

Here is the caller graph for this function:

void wary_dog ( struct monst mtmp,
boolean  was_dead 
)