/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/ |
H A D | dog.c | 13 initedog(mtmp) 14 register struct monst *mtmp; 16 mtmp->mtame = is_domestic(mtmp->data) ? 10 : 5; 17 mtmp->mpeaceful = 1; 18 mtmp->mavenge = 0; 19 set_malign(mtmp); /* recalc alignment now that it's tamed */ 20 mtmp->mleashed = 0; 21 mtmp->meating = 0; 22 EDOG(mtmp) 55 struct monst *mtmp = 0; local 130 register struct monst *mtmp; local 197 register struct monst *mtmp, *mtmp0 = 0, *mtmp2; local 487 register struct monst *mtmp, *mtmp2; local [all...] |
H A D | mon.c | 169 make_corpse(mtmp) 170 register struct monst *mtmp; 172 register struct permonst *mdat = mtmp->data; 175 int x = mtmp->mx, y = mtmp->my; 193 if (!rn2(mtmp->mrevived ? 20 : 3)) { 204 if (mtmp->mrevived && rn2(20)) { 205 if (canseemon(mtmp)) 207 s_suffix(Monnam(mtmp))); 216 /* include mtmp i 521 struct monst *mtmp; local 556 register struct monst *mtmp, *nmtmp; local 1246 struct monst **mtmp; local 1320 register struct monst *mtmp; local 2158 register struct monst *mtmp; local 2174 register struct monst *mtmp; local 2210 register struct monst *mtmp; local 2236 register struct monst *mtmp; local 2670 struct monst *mtmp, *mtmp2; local 2743 register struct monst *mtmp; local 2784 register struct monst *mtmp; local [all...] |
H A D | monmove.c | 22 boolean /* TRUE : mtmp died */ 23 mb_trapped(mtmp) 24 register struct monst *mtmp; 27 if (cansee(mtmp->mx, mtmp->my)) 32 wake_nearto(mtmp->mx, mtmp->my, 7*7); 33 mtmp->mstun = 1; 34 mtmp->mhp -= rnd(15); 35 if(mtmp 1035 if (mtmp->wormno) worm_move(mtmp); variable 1041 if(mtmp->wormno) worm_nomove(mtmp); variable 1175 if(g_at(mtmp->mx,mtmp->my) && likegold) mpickgold(mtmp); variable 1195 if (mtmp->wormno) see_wsegs(mtmp); variable 1211 after_shk_move(mtmp); variable [all...] |
H A D | muse.c | 70 struct monst *mtmp; local 80 mtmp = makemon(&mons[PM_GHOST], cc.x, cc.y, NO_MM_FLAGS); 81 if (!mtmp) { 103 mtmp = makemon(&mons[PM_DJINNI], cc.x, cc.y, NO_MM_FLAGS); 104 if (!mtmp) { 109 a_monnam(mtmp)); 110 pline("%s speaks.", vis ? Monnam(mtmp) : Something); 115 mtmp->mpeaceful = 1; 116 set_malign(mtmp); 119 if (vis) pline("%s vanishes.", Monnam(mtmp)); 1182 register struct monst *mtmp; local [all...] |
H A D | wizard.c | 55 struct monst *mtmp; local 84 for(mtmp = fmon; mtmp; mtmp = mtmp->nmon) 85 if (!DEADMONSTER(mtmp) && mtmp->iswiz && mtmp->msleeping && !rn2(40)) { 86 mtmp->msleeping = 0; 87 if (distu(mtmp 380 register struct monst *mtmp; local 425 register struct monst *mtmp; local 475 struct monst *mtmp, **mmtmp; local [all...] |
H A D | dogmove.c | 73 dog_nutrition(mtmp, obj) 74 struct monst *mtmp; 85 mtmp->meating = 3 + (mons[obj->corpsenm].cwt >> 6); 88 mtmp->meating = objects[obj->otyp].oc_delay; 91 switch(mtmp->data->msize) { 101 mtmp->meating = eaten_stat(mtmp->meating, obj); 105 mtmp->meating = (int)(obj->quan/2000) + 1; 106 if (mtmp->meating < 0) mtmp [all...] |
H A D | mcastu.c | 48 cursetxt(mtmp, undirected) 49 struct monst *mtmp; 52 if (canseemon(mtmp) && couldsee(mtmp->mx, mtmp->my)) { 57 else if ((Invis && !perceives(mtmp->data) && 58 (mtmp->mux != u.ux || mtmp->muy != u.uy)) || 63 else if (Displaced && (mtmp->mux != u.ux || mtmp [all...] |
H A D | sounds.c | 43 struct monst *mtmp; local 75 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) { 76 if (DEADMONSTER(mtmp)) continue; 77 if ((mtmp->msleeping || 78 is_lord(mtmp->data) || is_prince(mtmp->data)) && 79 !is_animal(mtmp 838 register struct monst *mtmp; local [all...] |
H A D | mhitu.c | 41 hitmsg(mtmp, mattk) 42 register struct monst *mtmp; 49 if((compat = could_seduce(mtmp, &youmonst, mattk)) 50 && !mtmp->mcan && !mtmp->mspec_used) { 51 pline("%s %s you %s.", Monnam(mtmp), 57 pline("%s bites!", Monnam(mtmp)); 60 pline("%s kicks%c", Monnam(mtmp), 64 pline("%s stings!", Monnam(mtmp)); 67 pline("%s butts!", Monnam(mtmp)); [all...] |
H A D | makemon.c | 36 #define m_initsgrp(mtmp, x, y) m_initgrp(mtmp, x, y, 3) 37 #define m_initlgrp(mtmp, x, y) m_initgrp(mtmp, x, y, 10) 81 m_initgrp(mtmp, x, y, n) /* make a group just like mtmp */ 82 register struct monst *mtmp; 126 if (peace_minded(mtmp->data)) continue; 132 if (enexto(&mm, mm.x, mm.y, mtmp->data)) { 133 mon = makemon(mtmp 829 register struct monst *mtmp; local [all...] |
H A D | music.c | 64 register struct monst *mtmp = fmon; local 67 while(mtmp) { 68 if (!DEADMONSTER(mtmp)) { 69 distm = distu(mtmp->mx, mtmp->my); 71 mtmp->msleeping = 0; 72 mtmp->mcanmove = 1; 73 mtmp->mfrozen = 0; 76 !resist(mtmp, TOOL_CLASS, 0, NOTELL)) 77 monflee(mtmp, 92 register struct monst *mtmp = fmon; local 112 register struct monst *mtmp = fmon; local 146 register struct monst *mtmp = fmon; local 168 register struct monst *mtmp = fmon; local 192 struct monst *mtmp, *mtmp2; local 220 struct monst *mtmp; local [all...] |
H A D | mplayer.c | 45 register struct monst *mtmp; local 51 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) { 52 if(!is_mplayer(mtmp->data)) continue; 53 if(!strncmp(developers[i], NAME(mtmp), 67 get_mplname(mtmp, nam) 68 register struct monst *mtmp; 71 boolean fmlkind = is_female(mtmp 117 register struct monst *mtmp; local [all...] |
H A D | steed.c | 28 can_saddle(mtmp) 29 struct monst *mtmp; 31 struct permonst *ptr = mtmp->data; 44 struct monst *mtmp; local 69 !(mtmp = m_at(u.ux+u.dx, u.uy+u.dy)) || 70 !canspotmon(mtmp)) { 76 if (mtmp->misc_worn_check & W_SADDLE || 77 which_armor(mtmp, W_SADDLE)) { 78 pline("%s doesn't need another one.", Monnam(mtmp)); 81 ptr = mtmp 465 struct monst *mtmp; local [all...] |
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/ |
H A D | dog.c | 13 initedog(mtmp) 14 register struct monst *mtmp; 16 mtmp->mtame = is_domestic(mtmp->data) ? 10 : 5; 17 mtmp->mpeaceful = 1; 18 mtmp->mavenge = 0; 19 set_malign(mtmp); /* recalc alignment now that it's tamed */ 20 mtmp->mleashed = 0; 21 mtmp->meating = 0; 22 EDOG(mtmp) 55 struct monst *mtmp = 0; local 130 register struct monst *mtmp; local 197 register struct monst *mtmp, *mtmp0 = 0, *mtmp2; local 487 register struct monst *mtmp, *mtmp2; local [all...] |
H A D | mon.c | 169 make_corpse(mtmp) 170 register struct monst *mtmp; 172 register struct permonst *mdat = mtmp->data; 175 int x = mtmp->mx, y = mtmp->my; 193 if (!rn2(mtmp->mrevived ? 20 : 3)) { 204 if (mtmp->mrevived && rn2(20)) { 205 if (canseemon(mtmp)) 207 s_suffix(Monnam(mtmp))); 216 /* include mtmp i 521 struct monst *mtmp; local 556 register struct monst *mtmp, *nmtmp; local 1246 struct monst **mtmp; local 1320 register struct monst *mtmp; local 2158 register struct monst *mtmp; local 2174 register struct monst *mtmp; local 2210 register struct monst *mtmp; local 2236 register struct monst *mtmp; local 2670 struct monst *mtmp, *mtmp2; local 2743 register struct monst *mtmp; local 2784 register struct monst *mtmp; local [all...] |
H A D | monmove.c | 22 boolean /* TRUE : mtmp died */ 23 mb_trapped(mtmp) 24 register struct monst *mtmp; 27 if (cansee(mtmp->mx, mtmp->my)) 32 wake_nearto(mtmp->mx, mtmp->my, 7*7); 33 mtmp->mstun = 1; 34 mtmp->mhp -= rnd(15); 35 if(mtmp 1035 if (mtmp->wormno) worm_move(mtmp); variable 1041 if(mtmp->wormno) worm_nomove(mtmp); variable 1175 if(g_at(mtmp->mx,mtmp->my) && likegold) mpickgold(mtmp); variable 1195 if (mtmp->wormno) see_wsegs(mtmp); variable 1211 after_shk_move(mtmp); variable [all...] |
H A D | muse.c | 70 struct monst *mtmp; local 80 mtmp = makemon(&mons[PM_GHOST], cc.x, cc.y, NO_MM_FLAGS); 81 if (!mtmp) { 103 mtmp = makemon(&mons[PM_DJINNI], cc.x, cc.y, NO_MM_FLAGS); 104 if (!mtmp) { 109 a_monnam(mtmp)); 110 pline("%s speaks.", vis ? Monnam(mtmp) : Something); 115 mtmp->mpeaceful = 1; 116 set_malign(mtmp); 119 if (vis) pline("%s vanishes.", Monnam(mtmp)); 1182 register struct monst *mtmp; local [all...] |
H A D | wizard.c | 55 struct monst *mtmp; local 84 for(mtmp = fmon; mtmp; mtmp = mtmp->nmon) 85 if (!DEADMONSTER(mtmp) && mtmp->iswiz && mtmp->msleeping && !rn2(40)) { 86 mtmp->msleeping = 0; 87 if (distu(mtmp 380 register struct monst *mtmp; local 425 register struct monst *mtmp; local 475 struct monst *mtmp, **mmtmp; local [all...] |
H A D | dogmove.c | 73 dog_nutrition(mtmp, obj) 74 struct monst *mtmp; 85 mtmp->meating = 3 + (mons[obj->corpsenm].cwt >> 6); 88 mtmp->meating = objects[obj->otyp].oc_delay; 91 switch(mtmp->data->msize) { 101 mtmp->meating = eaten_stat(mtmp->meating, obj); 105 mtmp->meating = (int)(obj->quan/2000) + 1; 106 if (mtmp->meating < 0) mtmp [all...] |
H A D | mcastu.c | 48 cursetxt(mtmp, undirected) 49 struct monst *mtmp; 52 if (canseemon(mtmp) && couldsee(mtmp->mx, mtmp->my)) { 57 else if ((Invis && !perceives(mtmp->data) && 58 (mtmp->mux != u.ux || mtmp->muy != u.uy)) || 63 else if (Displaced && (mtmp->mux != u.ux || mtmp [all...] |
H A D | sounds.c | 43 struct monst *mtmp; local 75 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) { 76 if (DEADMONSTER(mtmp)) continue; 77 if ((mtmp->msleeping || 78 is_lord(mtmp->data) || is_prince(mtmp->data)) && 79 !is_animal(mtmp 838 register struct monst *mtmp; local [all...] |
H A D | mhitu.c | 41 hitmsg(mtmp, mattk) 42 register struct monst *mtmp; 49 if((compat = could_seduce(mtmp, &youmonst, mattk)) 50 && !mtmp->mcan && !mtmp->mspec_used) { 51 pline("%s %s you %s.", Monnam(mtmp), 57 pline("%s bites!", Monnam(mtmp)); 60 pline("%s kicks%c", Monnam(mtmp), 64 pline("%s stings!", Monnam(mtmp)); 67 pline("%s butts!", Monnam(mtmp)); [all...] |
H A D | makemon.c | 36 #define m_initsgrp(mtmp, x, y) m_initgrp(mtmp, x, y, 3) 37 #define m_initlgrp(mtmp, x, y) m_initgrp(mtmp, x, y, 10) 81 m_initgrp(mtmp, x, y, n) /* make a group just like mtmp */ 82 register struct monst *mtmp; 126 if (peace_minded(mtmp->data)) continue; 132 if (enexto(&mm, mm.x, mm.y, mtmp->data)) { 133 mon = makemon(mtmp 829 register struct monst *mtmp; local [all...] |
H A D | music.c | 64 register struct monst *mtmp = fmon; local 67 while(mtmp) { 68 if (!DEADMONSTER(mtmp)) { 69 distm = distu(mtmp->mx, mtmp->my); 71 mtmp->msleeping = 0; 72 mtmp->mcanmove = 1; 73 mtmp->mfrozen = 0; 76 !resist(mtmp, TOOL_CLASS, 0, NOTELL)) 77 monflee(mtmp, 92 register struct monst *mtmp = fmon; local 112 register struct monst *mtmp = fmon; local 146 register struct monst *mtmp = fmon; local 168 register struct monst *mtmp = fmon; local 192 struct monst *mtmp, *mtmp2; local 220 struct monst *mtmp; local [all...] |
H A D | mplayer.c | 45 register struct monst *mtmp; local 51 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) { 52 if(!is_mplayer(mtmp->data)) continue; 53 if(!strncmp(developers[i], NAME(mtmp), 67 get_mplname(mtmp, nam) 68 register struct monst *mtmp; 71 boolean fmlkind = is_female(mtmp 117 register struct monst *mtmp; local [all...] |