| /netbsd-src/games/hack/ |
| H A D | extern.h | 65 void losehp_m(int, struct monst *); 99 char *monnam(struct monst *); 100 char *Monnam(struct monst *); 101 char *amonnam(struct monst *, const char *); 102 char *Amonnam(struct monst *, const char *); 103 char *Xmonnam(struct monst *); 121 void fall_down(struct monst *); 122 int dog_move(struct monst *, int); 124 int tamedog(struct monst *, struct obj *); 137 void done_in_by(struct monst *); [all …]
|
| H A D | def.monst.h | 66 struct monst { struct 67 struct monst *nmon; argument 110 #define newmonst(xl) ((struct monst *) alloc((xl) + sizeof(struct monst))) argument 112 extern struct monst *fmon; 113 extern struct monst *fallen_down; 115 extern void *monster_private(struct monst *);
|
| H A D | hack.mon.c | 82 static int dochugw(struct monst *); 83 static void mpickgold(struct monst *); 84 static void mpickgems(struct monst *); 86 static int ishuman(struct monst *); 91 struct monst *mtmp; in movemon() 179 justswld(struct monst *mtmp, const char *name) in justswld() 195 youswld(struct monst *mtmp, int dam, unsigned int die, const char *name) in youswld() 213 dochugw(struct monst *mtmp) in dochugw() 233 dochug(struct monst *mtmp) in dochug() 317 m_move(struct monst *mtmp, int after) in m_move() [all …]
|
| H A D | hack.do_name.c | 74 static char *xmonnam(struct monst *, int); 75 static char *lmonnam(struct monst *); 125 struct monst *mtmp, *mtmp2; in do_mname() 274 xmonnam(struct monst *mtmp, int vb) in xmonnam() 313 lmonnam(struct monst *mtmp) in lmonnam() 319 monnam(struct monst *mtmp) in monnam() 325 Monnam(struct monst *mtmp) in Monnam() 334 amonnam(struct monst *mtmp, const char *adj) in amonnam() 346 Amonnam(struct monst *mtmp, const char *adj) in Amonnam() 355 Xmonnam(struct monst *mtmp) in Xmonnam()
|
| H A D | hack.wizard.c | 82 static void clonewiz(struct monst *); 90 struct monst *mtmp; in amulet() 109 wiz_hit(struct monst *mtmp) in wiz_hit() 156 inrange(struct monst *mtmp) in inrange() 262 struct monst *mtmp; in aggravate() 272 clonewiz(struct monst *mtmp) in clonewiz() 274 struct monst *mtmp2; in clonewiz()
|
| H A D | hack.worm.c | 82 getwn(struct monst *mtmp) in getwn() 95 initworm(struct monst *mtmp) in initworm() 110 worm_move(struct monst *mtmp) in worm_move() 142 worm_nomove(struct monst *mtmp) in worm_nomove() 158 wormdead(struct monst *mtmp) in wormdead() 173 wormhit(struct monst *mtmp) in wormhit() 207 cutworm(struct monst *mtmp, xchar x, xchar y, uchar weptyp) in cutworm() 210 struct monst *mtmp2; in cutworm()
|
| H A D | hack.shk.c | 78 static void pay(long, struct monst *); 87 struct monst *shopkeeper = 0; 129 shkdead(struct monst *m) in shkdead() 138 shk_move(struct monst *m) in shk_move() 143 replshk(struct monst *mtmp, struct monst *mtmp2) in replshk() 147 shkname(struct monst *m) in shkname() 165 static struct monst *shopkeeper = 0; 191 shkname(struct monst *mtmp) /* called in do_name.c */ in shkname() 197 shkdead(struct monst *mtmp) /* called in mon.c */ in shkdead() 212 replshk(struct monst *mtmp, struct monst *mtmp2) in replshk() [all …]
|
| H A D | hack.zap.c | 80 static void bhitm(struct monst *, struct obj *); 83 static int zhit(struct monst *, int); 91 bhitm(struct monst *mtmp, struct obj *otmp) in bhitm() 276 struct monst *mtmp = u.ustuck; in dozap() 359 hit(const char *str, struct monst *mtmp, const char *force) in hit() 370 miss(const char *str, struct monst *mtmp) in miss() 388 struct monst * 392 void (*fhitm)(struct monst *, struct obj *), in bhit() argument 396 struct monst *mtmp; in bhit() 436 struct monst * [all …]
|
| H A D | hack.dog.c | 82 static void initedog(struct monst *); 88 struct monst *mtmp = makemon(&li_dog, u.ux, u.uy); in makedog() 95 initedog(struct monst *mtmp) in initedog() 107 struct monst *mydogs = 0; 108 struct monst *fallen_down = 0;/* monsters that fell through a trapdoor */ 114 struct monst *mtmp; in losedogs() 132 struct monst *mtmp; in keepdogs() 147 fall_down(struct monst *mtmp) in fall_down() 190 dog_move(struct monst *mtmp, int after) in dog_move() 194 struct monst *mtmp2; in dog_move() [all …]
|
| H A D | hack.makemon.c | 72 static const struct monst zeromonst; 82 struct monst * 85 struct monst *mtmp; in makemon() 92 return ((struct monst *) 0); in makemon() 95 return ((struct monst *) 0); in makemon() 239 rloc(struct monst *mtmp) in rloc() 265 struct monst *
|
| H A D | hack.steal.c | 86 stealgold(struct monst *mtmp) in stealgold() 117 struct monst *mtmp; in stealarm() 143 steal(struct monst *mtmp) in steal() 231 mpickobj(struct monst *mtmp, struct obj *otmp) in mpickobj() 238 stealamulet(struct monst *mtmp) in stealamulet() 258 relobj(struct monst *mtmp, int show) in relobj()
|
| H A D | hack.fight.c | 75 static void monstone(struct monst *); 79 hitmm(struct monst *magr, struct monst *mdef) in hitmm() 148 mondied(struct monst *mdef) in mondied() 164 monstone(struct monst *mdef) in monstone() 179 fightm(struct monst *mtmp) in fightm() 181 struct monst *mon; in fightm() 218 hmon(struct monst *mon, struct obj *obj, int thrown) in hmon() 346 attack(struct monst *mtmp) in attack()
|
| H A D | hack.apply.c | 79 static struct monst *bchit(int, int , int , int); 141 struct monst *mtmp; in use_camera() 270 static struct monst * 273 struct monst *mtmp = (struct monst *) 0; in bchit() 300 struct monst *mtmp = fmon; in use_whistle() 317 struct monst *mtmp = fmon; in use_magic_whistle() 441 struct monst *mtmp; in use_pick_axe()
|
| H A D | hack.vault.c | 89 replgd(struct monst *mtmp __unused, struct monst *mtmp2 __unused) in replgd() 117 static struct monst *guard; 163 struct monst *mtmp; in setgd() 378 replgd(struct monst *mtmp, struct monst *mtmp2) in replgd()
|
| H A D | hack.save.c | 225 struct monst *mtmp; in dorecover() 270 struct monst * 273 struct monst *mtmp, *mtmp2 = NULL; in restmonchn() 274 struct monst *first = 0; in restmonchn() 296 mread(fd, mtmp, (unsigned) xl + sizeof(struct monst)); in restmonchn()
|
| H A D | hack.search.c | 78 struct monst *mtmp; in findit() 123 struct monst *mtmp; in dosearch() 198 wakeup(struct monst *mtmp) in wakeup() 208 seemimic(struct monst *mtmp) in seemimic()
|
| H A D | hack.pri.c | 276 struct monst *mtmp; in docrt() 323 struct monst *mtmp; in docorner() 393 struct monst *mtmp; in prl() 578 struct monst *mtmp; in vism_at() 641 struct monst *mtmp; in seemons() 655 pmon(struct monst *mon) in pmon() 674 unpmon(struct monst *mon) in unpmon() 783 mstatusline(struct monst *mtmp) in mstatusline()
|
| H A D | hack.Decl.c | 83 struct monst *fmon = 0; 91 struct monst youmonst; /* dummy; used as return value for boomhit */
|
| H A D | hack.lev.c | 160 savemonchn(int fd, struct monst *mtmp) in savemonchn() 162 struct monst *mtmp2; in savemonchn() 173 bwrite(fd, mtmp, xl + sizeof(struct monst)); in savemonchn() 244 struct monst *mtmp, *mtmp2; in getlev()
|
| H A D | hack.h | 175 struct monst *ustuck; 222 extern struct monst *mydogs; 223 extern struct monst youmonst;
|
| H A D | hack.do.c | 280 struct monst *mtmp = m_at(u.ux, u.uy); in goto_level() 304 struct monst *mtmp; in goto_level() 334 struct monst *mon; in dothrow() 405 (void (*)(struct monst *, struct obj *)) 0, in dothrow()
|
| H A D | hack.potion.c | 78 struct monst *mtmp; in dodrink() 300 potionhit(struct monst *mon, struct obj *obj) in potionhit() 453 struct monst *mtmp; in ghost_from_bottle()
|
| H A D | hack.mkshop.c | 96 struct monst *shk; in mkshop() 205 struct monst *mtmp; in mkshop() 226 struct monst *mon; in mkzoo()
|
| H A D | hack.read.c | 167 struct monst *mtmp; in doread() 246 struct monst *mtmp; in doread() 257 struct monst *mtmp, *mtmp2; in doread() 470 struct monst *mtmp; in doread()
|
| /netbsd-src/games/larn/ |
| H A D | monster.c | 189 cgood(int x, int y, int theitem, int monst) in cgood() argument 198 if (monst == 0 || (mitem[x][y] == 0)) in cgood() 685 nospell(int x, int monst) in nospell() argument 688 if (x >= SPNUM || monst >= MAXMONST + 8 || monst < 0 || x < 0) in nospell() 690 if ((tmp = spelweird[monst - 1][x]) == 0) in nospell() 694 lprintf(spelmes[tmp], monster[monst].name); in nospell() 1121 int tmp, monst, damag = 0, flag; in hitmonster() local 1125 if ((monst = mitem[x][y]) == 0) in hitmonster() 1129 tmp = monster[monst].armorclass + c[LEVEL] + c[DEXTERITY] + in hitmonster() 1146 if ((monst == RUSTMONSTER) || (monst == DISENCHANTRESS) || (monst == CUBE)) in hitmonster() [all …]
|