Functions | Variables

sounds.c File Reference

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

Functions

static int FDECL (domonnoise,(struct monst *))
static int NDECL (dochat)
static int FDECL (mon_in_room,(struct monst *, int))
static int mon_in_room (struct monst *mon, int rmtyp)
void dosounds ()
const char * growl_sound (struct monst *mtmp)
void growl (struct monst *mtmp)
void yelp (struct monst *mtmp)
void whimper (struct monst *mtmp)
void beg (struct monst *mtmp)
static int domonnoise (struct monst *mtmp)
int dotalk ()
static int dochat ()

Variables

static const char *const h_sounds []

Function Documentation

void beg ( struct monst mtmp )

References canspotmon, carnivorous, domonnoise(), herbivorous, is_silent, map_invisible(), MS_ANIMAL, and MS_HUMANOID.

Referenced by dog_hunger().

Here is the call graph for this function:

Here is the caller graph for this function:

static int dochat (  ) [static]
static int domonnoise ( struct monst mtmp ) [static]

References aggravate(), an(), BLOOD, body_part(), BUFSZ, canspotmon, could_seduce(), cuss(), monst::data, demon_talk(), doconsult(), EDOG, RoleName::f, flag::female, flags, FULL_MOON, genus(), Role::guardnum, In_endgame, Race::individual, invent, is_dwarf, is_elf, is_mplayer, is_silent, is_weptool, likes_magic, RoleName::m, map_invisible(), maybe_polyd, mhis, midnight(), permonst::mlet, permonst::mname, Monnam(), mons, monsndx(), flag::moonphase, moves, mplayer_talk(), MS_BARK, MS_BOAST, MS_BONES, MS_BRIBE, MS_BURBLE, MS_BUZZ, MS_CUSS, MS_DJINNI, MS_GROWL, MS_GRUNT, MS_GUARD, MS_GUARDIAN, MS_GURGLE, MS_HISS, MS_HUMANOID, MS_IMITATE, MS_LAUGH, MS_LEADER, MS_MEW, MS_MUMBLE, MS_NEIGH, MS_NEMESIS, MS_NURSE, MS_ORACLE, MS_PRIEST, MS_RIDER, MS_ROAR, MS_SEDUCE, MS_SELL, MS_SHRIEK, MS_SOLDIER, MS_SPELL, MS_SQAWK, MS_SQEEK, MS_VAMPIRE, MS_WAIL, MS_WERE, permonst::msound, night(), nomul(), Race::noun, obj::oclass, pline(), PM_APE, PM_ARCHEOLOGIST, PM_BABY_SILVER_DRAGON, PM_CARNIVOROUS_APE, PM_DEATH, PM_DINGO, PM_HEALER, PM_HOBBIT, PM_HUMAN_WERERAT, PM_MONKEY, PM_RAVEN, PM_SILVER_DRAGON, PM_TOURIST, PM_VAMPIRE, PM_VAMPIRE_LORD, PM_WATER_DEMON, PM_WINTER_WOLF, PM_WINTER_WOLF_CUB, PM_WOLF, poly_gender(), priest_talk(), quest_chat(), Race_if, rn2(), Role_if, S_CENTAUR, S_NYMPH, shk_chat(), SIZE, flag::soundok, Sprintf, t_at(), u, uarm, uarmc, uarmf, uarmg, uarmh, uarms, you::ugold, you::umonnum, Upolyd, urace, urole, uwep, you::uz, wake_nearto(), WEAPON_CLASS, and youmonst.

Referenced by beg(), and dochat().

Here is the call graph for this function:

Here is the caller graph for this function:

void dosounds (  )
int dotalk (  )

References dochat(), flags, and flag::soundok.

Here is the call graph for this function:

static int FDECL ( domonnoise  ,
(struct monst *)   
) [static]
static int FDECL ( mon_in_room  ,
(struct monst *, int)   
) [static]
void growl ( struct monst mtmp )

References flags, growl_sound(), Hallucination, Monnam(), nomul(), pline(), rn2(), flag::run, SIZE, vtense(), and wake_nearto().

Referenced by abuse_dog(), check_leash(), domove(), and setmangry().

Here is the call graph for this function:

Here is the caller graph for this function:

const char* growl_sound ( struct monst mtmp )

References MS_BARK, MS_BUZZ, MS_GROWL, MS_HISS, MS_MEW, MS_NEIGH, MS_ROAR, MS_SILENT, MS_SQAWK, MS_SQEEK, and MS_WAIL.

Referenced by growl(), and mattacku().

Here is the caller graph for this function:

static int mon_in_room ( struct monst mon,
int  rmtyp 
) [static]

References levl, ROOMOFFSET, rooms, and mkroom::rtype.

Referenced by dosounds().

Here is the caller graph for this function:

static int NDECL ( dochat   ) [static]
void whimper ( struct monst mtmp )

References flags, Hallucination, Monnam(), MS_BARK, MS_GROWL, MS_MEW, MS_SQEEK, nomul(), pline(), rn2(), flag::run, SIZE, vtense(), and wake_nearto().

Referenced by check_leash(), and dog_move().

Here is the call graph for this function:

Here is the caller graph for this function:

void yelp ( struct monst mtmp )

References flags, Hallucination, Monnam(), MS_BARK, MS_GROWL, MS_MEW, MS_ROAR, MS_SQAWK, MS_SQEEK, MS_WAIL, nomul(), pline(), rn2(), flag::run, SIZE, vtense(), and wake_nearto().

Referenced by abuse_dog(), check_leash(), clear_fcorr(), domove(), teleport_pet(), and wallify_vault().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const char* const h_sounds[] [static]
Initial value:
 {
    "beep", "boing", "sing", "belche", "creak", "cough", "rattle",
    "ululate", "pop", "jingle", "sniffle", "tinkle", "eep"
}