Searched refs:monster (Results 1 - 25 of 26) sorted by relevance

12

/netbsd-current/games/rogue/
H A Dmonster.c1 /* $NetBSD: monster.c,v 1.16 2009/10/19 02:34:40 dholland Exp $ */
38 static char sccsid[] = "@(#)monster.c 8.1 (Berkeley) 5/31/93";
40 __RCSID("$NetBSD: monster.c,v 1.16 2009/10/19 02:34:40 dholland Exp $");
45 * monster.c
70 "ice monster",
138 object *monster; local
144 monster = gr_monster(NULL, 0);
145 if ((monster->m_flags & WANDERS) && coin_toss()) {
146 wake_up(monster);
149 put_m_at(row, col, monster);
154 gr_monster(object *monster, int mn) argument
181 object *monster, *next_monster, *test_mons; local
239 object *monster; local
278 object *monster; local
295 gmc(object *monster) argument
309 mv_1_monster(object *monster, short row, short col) argument
447 mtry(object *monster, short row, short col) argument
457 move_mon_to(object *monster, short row, short col) argument
506 mon_can_go(const object *monster, short row, short col) argument
546 wake_up(object *monster) argument
556 object *monster; local
588 mon_name(const object *monster) argument
619 object *monster; local
652 object *monster; local
677 object *monster; local
708 put_m_at(short row, short col, object *monster) argument
719 aim_monster(object *monster) argument
752 move_confused(object *monster) argument
782 flit(object *monster) argument
836 object *monster; local
853 mon_sees(const object *monster, int row, int col) argument
874 object *monster; local
[all...]
H A Dzap.c72 object *monster; local
106 monster = get_zapped_monster(d, &row, &col);
108 wdrain_life(monster);
109 } else if (monster) {
110 wake_up(monster);
111 s_con_mon(monster);
112 zap_monster(monster, wand->which_kind);
142 zap_monster(object *monster, unsigned short kind) argument
148 row = monster->row;
149 col = monster
208 tele_away(object *monster) argument
251 wdrain_life(object *monster) argument
330 object *monster; local
[all...]
H A Dspec_hit.c73 special_hit(object *monster) argument
75 if ((monster->m_flags & CONFUSED) && rand_percent(66)) {
78 if (monster->m_flags & RUSTS) {
79 rust(monster);
81 if ((monster->m_flags & HOLDS) && !levitate) {
84 if (monster->m_flags & FREEZES) {
85 freeze(monster);
87 if (monster->m_flags & STINGS) {
88 sting(monster);
90 if (monster
104 rust(object *monster) argument
123 freeze(object *monster) argument
156 steal_gold(object *monster) argument
176 steal_item(object *monster) argument
229 disappear(object *monster) argument
246 cough_up(object *monster) argument
309 seek_gold(object *monster) argument
355 check_gold_seeker(object *monster) argument
361 check_imitator(object *monster) argument
380 object *monster; local
392 sting(object *monster) argument
462 m_confuse(object *monster) argument
482 flame_broil(object *monster) argument
[all...]
H A Dhit.c66 mon_hit(object *monster) argument
72 if (fight_monster && (monster != fight_monster)) {
75 monster->trow = NO_ROOM;
79 hit_chance = monster->m_hit_chance;
88 mn = mon_name(monster);
101 if (!(monster->m_flags & STATIONARY)) {
102 damage = get_damage(monster->m_damage, 1);
111 damage = monster->stationary_damage++;
117 rogue_damage(damage, monster, 0);
119 if (monster
125 rogue_hit(object *monster, boolean force_hit) argument
164 rogue_damage(short d, object *monster, short other) argument
302 mon_damage(object *monster, short damage) argument
339 object *monster; local
458 s_con_mon(object *monster) argument
[all...]
H A Droom.c116 object *monster; local
118 if ((monster = object_at(
120 dungeon[monster->row][monster->col] &= (~MONSTER);
121 monster->trail_char =
122 get_dungeon_char(monster->row, monster->col);
123 dungeon[monster->row][monster->col] |= MONSTER;
406 object *monster; local
422 dr_course(object *monster, boolean entering, short row, short col) argument
[all...]
H A Dthrow.c69 object *monster; local
106 monster = get_thrown_at_monster(weapon, d, &row, &col);
113 if (monster) {
114 wake_up(monster);
115 check_gold_seeker(monster);
117 if (!throw_at_monster(monster, weapon)) {
127 throw_at_monster(object *monster, object *weapon) argument
155 s_con_mon(monster);
157 (void)mon_damage(monster, damage);
206 object *new_weapon, *monster; local
[all...]
H A Duse.c439 object *monster; local
451 monster = object_at(&level_monsters, row, col);
452 monster->m_flags |= ASLEEP;
453 monster->m_flags &= (~WAKENS);
461 messagef(0, "the monster freezes");
483 object *obj, *monster; local
499 monster = level_monsters.next_monster;
501 while (monster) {
502 ch = mvinch(monster->row, monster
569 object *monster; local
[all...]
H A DMakefile7 message.c monster.c move.c object.c pack.c play.c random.c ring.c \
H A Dscore.c67 killed_by(const object *monster, short other) argument
99 if (is_vowel(m_names[monster->m_char - 'A'][0])) {
106 article, m_names[monster->m_char - 'A']);
136 put_scores(monster, other);
336 put_scores(const object *monster, short other) argument
408 make_score(&scores[rank], monster, other);
458 make_score(struct score_entry *se, const object *monster, int other) argument
491 mn = m_names[monster->m_char - 'A'];
H A Dobject.c92 {100, "purple ", "of detect monster ", 0},
102 {200, "", "of hold monster ", 0},
108 {610, "", "of scare monster ", 0},
110 {80, "", "of create monster ",0},
111 {25, "", "of aggravate monster ",0},
113 {90, "", "of confuse monster ", 0}
139 {50, "", "of slow monster ", 0},
142 {2, "", "of haste monster ",0},
672 object *monster; local
683 if ((monster
[all...]
/netbsd-current/games/larn/
H A Ddiag.c65 lprcat("\f\nNow for the monster data:\n\n");
69 lprintf("%19s %2ld %3ld ", monster[i].name, (long) monster[i].level, (long) monster[i].armorclass);
70 lprintf(" %3ld %3ld %3ld ", (long) monster[i].damage, (long) monster[i].attack, (long) monster[i].defense);
71 lprintf("%6ld %3ld %6ld\n", (long) monster[i].gold, (long) monster[i].hitpoints, (long) monster[
[all...]
H A DMakefile64 monster.c store.c diag.c help.c config.c nap.c bill.c scores.c \
78 COPTS.monster.c += -Wno-format-nonliteral
H A Dmonster.c1 /* $NetBSD: monster.c,v 1.20 2021/05/02 12:50:45 rillig Exp $ */
4 * monster.c Larn is copyrighted 1986 by Noah Morgan.
9 * createmonster(monstno) Function to create a monster next to the player
27 * nospell(x,monst)Routine to return 1 if a spell doesn't affect a monster
41 * ifblind(x,y)Routine to put "monster" or the monster name into lastmosnt
44 * tdirect(spnum) Routine to teleport away a monster
60 * hitmonster(x,y) Function to hit a monster at the designated coordinates
63 * hitm(x,y,amt) Function to just hit a monster at a given coordinates
66 * hitplayer(x,y) Function for the monster t
[all...]
H A Dmovem.c4 * movem.c (move monster) Larn is copyrighted 1986 by Noah Morgan.
9 * movemt(x,y) Function to move a monster at (x,y) -- must determine where
10 * mmove(x,y,xd,yd) Function to actually perform the monster movement
53 distance = 40; /* depth of intelligent monster movement */
59 distance = 17; /* depth of intelligent monster movement */
84 for (j = tmp1; j < tmp2; j++) /* now reset monster moved flags */
94 if (mitem[i][j]) /* if there is a monster
99 * monster */
104 if (mitem[i][j]) /* if there is a monster
111 * monster */
[all...]
H A Dtok.c29 #define MAXMNAME 40 /* max length of a monster re-name */
30 static char usermonster[MAXUM][MAXMNAME]; /* the user named monster
32 static u_char usermpoint = 0; /* the user monster pointer */
151 mp = &monster[j];
196 else if (strcmp(i, "monster:") == 0) { /* name favorite monster */
203 for (k = 1; k < MAXMONST + 8; k++) /* find monster */
205 monster[k].name = &usermonster[usermpoint++][0];
H A Dcreate.c161 hitp[i][j] = monster[z].hitpoints;
236 * # wall D door . random monster
275 marg = monster[mit].hitpoints;
283 marg = monster[mit].hitpoints;
289 marg = monster[mit].hitpoints;
561 hitp[x][y] = monster[what].hitpoints;
604 if (monster[mitem[x][y]].genocided)
605 mitem[x][y] = 0; /* no more monster */
H A Dscores.c44 short what; /* the number of the monster that killed
319 lprintf("killed by a %s", monster[sco[j].what].name);
557 * < 256 killed by the monster number
677 ch = *monster[x].name;
683 "killed by %s %s", mod, monster[x].name);
741 ch = *monster[x].name;
746 lprintf("killed by %s %s", mod, monster[x].name);
H A Ddata.c120 short hitp[MAXX][MAXY]; /* monster hp on level */
124 u_char mitem[MAXX][MAXY]; /* monster item array */
125 u_char moved[MAXX][MAXY]; /* monster movement flags */
129 char lastmonst[40]; /* this has the name of the current monster */
151 short lastnum = 0; /* the number of the monster last hitting
163 short lasthx = 0, lasthy = 0; /* location of monster last hit by
214 * for the monster data
220 struct monst monster[] = { variable in typeref:struct:monst
250 {"rust monster", 3, 4, 0, 1, 0, 0, 3, 0, 18, 25},
344 " create monster",
[all...]
H A Dheader.h33 /* this is the structure definition of the monster data */
59 short hitp; /* monster's hit points */
60 char mitem; /* the monster ID */
371 extern struct monst monster[];
392 /* macro to wipe out a monster at a location */
H A Dglobal.c16 * makemonst(lev) function to return monster number for a randomly
17 * selected monster
199 function to return monster number for a randomly selected monster
218 while (monster[tmp].genocided && tmp < MAXMONST)
601 function to return 1 if a monster is next to the player else returns 0
610 return (1); /* if monster nearby */
H A Dobject.c778 /* monster detection */ return;
979 return; /* this one creates a monster */
1008 return; /* haste monster */
1014 hitp[j][i] = monster[mitem[j][i]].hitpoints;
1015 return; /* monster healing */
1043 return; /* hold monster */
/netbsd-current/games/phantasia/
H A Dphantglobs.c16 double Shield; /* force field thrown up in monster battle */
30 int Whichmonster; /* which monster we are fighting */
39 const char *Enemyname; /* pointer name of monster/player we are battling*/
44 struct monster Curmonster;/* stats for current monster */
112 FILE *Monstfp; /* pointer to open monster file */
H A Dphantglobs.h8 extern double Shield; /* force field thrown up in monster battle */
22 extern int Whichmonster; /* which monster we are fighting */
31 extern const char *Enemyname; /* pointer name of monster/player we are battling*/
36 extern struct monster Curmonster;/* stats for current monster */
47 extern FILE *Monstfp; /* pointer to open monster file */
H A Dphantstruct.h69 struct monster /* monster stats */ struct
H A Dphantdefs.h29 #define S_MONSTER 5 /* playing - fighting monster */
40 #define T_MONSTER 6 /* monster lobbed by valar */
76 /* special monster constants */
133 #define SZ_MONSTERSTRUCT sizeof(struct monster) /* size of monster structure */

Completed in 164 milliseconds

12