/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/ |
H A D | emin.h | 12 #define EMIN(mon) ((struct emin *)&(mon)->mextra[0])
|
H A D | eshk.h | 40 #define ESHK(mon) ((struct eshk *)&(mon)->mextra[0]) 42 #define NOTANGRY(mon) ((mon)->mpeaceful) 43 #define ANGRY(mon) (!NOTANGRY(mon))
|
H A D | epri.h | 16 #define EPRI(mon) ((struct epri *)&(mon)->mextra[0])
|
H A D | display.h | 27 #define tp_sensemon(mon) ( /* The hero can always sense a monster IF: */\ 28 (!mindless(mon->data)) && /* 1. the monster has a brain to sense AND */\ 33 (distu(mon->mx, mon->my) <= (BOLT_LIM * BOLT_LIM)))) \ 36 #define sensemon(mon) (tp_sensemon(mon) || Detect_monsters || MATCH_WARN_OF_MON(mon)) 43 #define mon_warning(mon) (Warning && !(mon)->mpeaceful && \ 44 (distu((mon) [all...] |
H A D | edog.h | 31 #define EDOG(mon) ((struct edog *)&(mon)->mextra[0])
|
H A D | vault.h | 25 #define EGD(mon) ((struct egd *)&(mon)->mextra[0])
|
H A D | monst.h | 168 #define dealloc_monst(mon) free((genericptr_t)(mon)) 176 #define MON_WEP(mon) ((mon)->mw) 177 #define MON_NOWEP(mon) ((mon)->mw = (struct obj *)0) 179 #define DEADMONSTER(mon) ((mon)->mhp < 1)
|
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/ |
H A D | emin.h | 12 #define EMIN(mon) ((struct emin *)&(mon)->mextra[0])
|
H A D | eshk.h | 40 #define ESHK(mon) ((struct eshk *)&(mon)->mextra[0]) 42 #define NOTANGRY(mon) ((mon)->mpeaceful) 43 #define ANGRY(mon) (!NOTANGRY(mon))
|
H A D | epri.h | 16 #define EPRI(mon) ((struct epri *)&(mon)->mextra[0])
|
H A D | display.h | 27 #define tp_sensemon(mon) ( /* The hero can always sense a monster IF: */\ 28 (!mindless(mon->data)) && /* 1. the monster has a brain to sense AND */\ 33 (distu(mon->mx, mon->my) <= (BOLT_LIM * BOLT_LIM)))) \ 36 #define sensemon(mon) (tp_sensemon(mon) || Detect_monsters || MATCH_WARN_OF_MON(mon)) 43 #define mon_warning(mon) (Warning && !(mon)->mpeaceful && \ 44 (distu((mon) [all...] |
H A D | edog.h | 31 #define EDOG(mon) ((struct edog *)&(mon)->mextra[0])
|
H A D | vault.h | 25 #define EGD(mon) ((struct egd *)&(mon)->mextra[0])
|
H A D | monst.h | 168 #define dealloc_monst(mon) free((genericptr_t)(mon)) 176 #define MON_WEP(mon) ((mon)->mw) 177 #define MON_NOWEP(mon) ((mon)->mw = (struct obj *)0) 179 #define DEADMONSTER(mon) ((mon)->mhp < 1)
|
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/ |
H A D | worn.c | 132 mon_set_minvis(mon) 133 struct monst *mon; 135 mon->perminvis = 1; 136 if (!mon->invis_blkd) { 137 mon->minvis = 1; 138 newsym(mon->mx, mon->my); /* make it disappear */ 139 if (mon->wormno) see_wsegs(mon); /* and any tail too */ 144 mon_adjust_speed(mon, adjus [all...] |
H A D | were.c | 10 were_change(mon) 11 register struct monst *mon; 13 if (!is_were(mon->data)) 16 if (is_human(mon->data)) { 20 new_were(mon); /* change into animal form */ 21 if (flags.soundok && !canseemon(mon)) { 24 switch (monsndx(mon->data)) { 34 new_were(mon); /* change back into human form */ 59 new_were(mon) 60 register struct monst *mon; [all...] |
H A D | uhitm.c | 412 known_hitum(mon, mhit, uattk) /* returns TRUE if monster still lives */ 413 register struct monst *mon; 426 missum(mon, uattk); 428 int oldhp = mon->mhp, 437 notonhead = (mon->mx != x || mon->my != y); 438 malive = hmon(mon, uwep, 0); 441 m_at(x, y) == mon) 442 malive = hmon(mon, uswapwep, 0); 445 if(!rn2(25) && mon 1012 if (thrown) hit(mshot_xname(obj), mon, exclam(tmp)); local [all...] |
H A D | weapon.c | 125 hitval(otmp, mon) 127 struct monst *mon; 130 struct permonst *ptr = mon->data; 150 if (is_pool(mon->mx, mon->my)) tmp += 4; 164 if (otmp->oartifact) tmp += spec_abon(otmp, mon); 196 dmgval(otmp, mon) 198 struct monst *mon; 201 struct permonst *ptr = mon->data; 298 if (bonus > 1 && otmp->oartifact && spec_dbon(otmp, mon, 2 [all...] |
H A D | dothrow.c | 453 struct monst *mon; local 509 if ((mon = m_at(x, y)) != 0) { 510 You("bump into %s.", a_monnam(mon)); 511 wakeup(mon); 570 struct monst *mon = (struct monst *)arg; local 575 if (goodpos(x, y, mon, 0) && m_in_out_region(mon, x, y)) { 576 remove_monster(mon->mx, mon->my); 577 newsym(mon 865 register struct monst *mon; local 1387 miss(xname(obj), mon); local 1699 register struct monst *mon; local [all...] |
H A D | minion.c | 10 msummon(mon) /* mon summons a monster */ 11 struct monst *mon; 18 if (mon) { 19 ptr = mon->data; 21 if (mon->ispriest || mon->data == &mons[PM_ALIGNED_PRIEST] 22 || mon->data == &mons[PM_ANGEL]) 23 atyp = EPRI(mon)->shralign; 41 } else if (is_lminion(mon)) { 91 register struct monst *mon; local [all...] |
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/ |
H A D | worn.c | 132 mon_set_minvis(mon) 133 struct monst *mon; 135 mon->perminvis = 1; 136 if (!mon->invis_blkd) { 137 mon->minvis = 1; 138 newsym(mon->mx, mon->my); /* make it disappear */ 139 if (mon->wormno) see_wsegs(mon); /* and any tail too */ 144 mon_adjust_speed(mon, adjus [all...] |
H A D | were.c | 10 were_change(mon) 11 register struct monst *mon; 13 if (!is_were(mon->data)) 16 if (is_human(mon->data)) { 20 new_were(mon); /* change into animal form */ 21 if (flags.soundok && !canseemon(mon)) { 24 switch (monsndx(mon->data)) { 34 new_were(mon); /* change back into human form */ 59 new_were(mon) 60 register struct monst *mon; [all...] |
H A D | uhitm.c | 412 known_hitum(mon, mhit, uattk) /* returns TRUE if monster still lives */ 413 register struct monst *mon; 426 missum(mon, uattk); 428 int oldhp = mon->mhp, 437 notonhead = (mon->mx != x || mon->my != y); 438 malive = hmon(mon, uwep, 0); 441 m_at(x, y) == mon) 442 malive = hmon(mon, uswapwep, 0); 445 if(!rn2(25) && mon 1012 if (thrown) hit(mshot_xname(obj), mon, exclam(tmp)); local [all...] |
H A D | weapon.c | 125 hitval(otmp, mon) 127 struct monst *mon; 130 struct permonst *ptr = mon->data; 150 if (is_pool(mon->mx, mon->my)) tmp += 4; 164 if (otmp->oartifact) tmp += spec_abon(otmp, mon); 196 dmgval(otmp, mon) 198 struct monst *mon; 201 struct permonst *ptr = mon->data; 298 if (bonus > 1 && otmp->oartifact && spec_dbon(otmp, mon, 2 [all...] |
H A D | dothrow.c | 453 struct monst *mon; local 509 if ((mon = m_at(x, y)) != 0) { 510 You("bump into %s.", a_monnam(mon)); 511 wakeup(mon); 570 struct monst *mon = (struct monst *)arg; local 575 if (goodpos(x, y, mon, 0) && m_in_out_region(mon, x, y)) { 576 remove_monster(mon->mx, mon->my); 577 newsym(mon 865 register struct monst *mon; local 1387 miss(xname(obj), mon); local 1699 register struct monst *mon; local [all...] |