/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/ |
H A D | dogmove.c | 266 register int omx, omy; local 271 omx = mtmp->mx; 290 if((obj=level.objects[omx][omy]) && !index(nofetch,obj->oclass) 301 return dog_eat(mtmp, obj, omx, omy, FALSE); 307 if (cansee(omx, omy) && flags.verbose) 311 newsym(omx,omy); 336 register int omx, omy; local 348 omx = mtmp->mx; 351 in_masters_sight = couldsee(omx, omy); 359 #define DDIST(x,y) (dist2(x,y,omx,om 483 int omx, omy; /* original mtmp position */ local [all...] |
H A D | steal.c | 528 int omx = mon->mx, omy = mon->my; local 540 !obj->unpaid && costly_spot(omx, omy)) { 546 if (verbosely && cansee(omx, omy)) 548 if (!flooreffects(obj, omx, omy, "fall")) { 549 place_object(obj, omx, omy); 582 register int omx = mtmp->mx, omy = mtmp->my; local 621 (void) mkgold(g, omx, omy); 622 if (is_pet && cansee(omx, omy) && flags.verbose) 629 if (show & cansee(omx, omy)) 630 newsym(omx, om [all...] |
H A D | priest.c | 24 move_special(mtmp,in_his_shop,appr,uondoor,avoid,omx,omy,gx,gy) 29 register xchar omx,omy,gx,gy; 39 if(omx == gx && omy == gy) 46 nix = omx; 87 nix == omx && niy == omy && onlineu(omx,omy)) { 94 if(nix != omx || niy != omy) { 95 remove_monster(omx, omy); 147 register xchar gx,gy,omx,omy; local 151 omx [all...] |
H A D | monmove.c | 611 int omx = mtmp->mx, omy = mtmp->my; 712 omx = mtmp->mx; 723 boolean should_see = (couldsee(omx, omy) && 725 !levl[omx][omy].lit) && 726 (dist2(omx, omy, gx, gy) <= 36)); 749 cp = gettrack(omx,omy); 796 if(distmin(mtmp->mux, mtmp->muy, omx, omy) < SQSRCHRADIUS && 802 && (!*in_rooms(omx, omy, SHOPBASE) || (!rn2(25) && !mtmp->isshk))) { 804 oomx = min(COLNO-1, omx+minr); 806 lmx = max(1, omx [all...] |
H A D | shk.c | 3197 register xchar gx,gy,omx,omy; local 3204 omx = shkp->mx; 3210 if((udist = distu(omx,omy)) < 3 && 3211 (shkp->data != &mons[PM_GRID_BUG] || (omx==u.ux || omy==u.uy))) { 3245 satdoor = (gx == omx && gy == omy); 3288 || avoid) && GDIST(omx,omy) < 3) { 3289 if (!badinv && !onlineu(omx,omy)) 3297 z = move_special(shkp,inhishop(shkp),appr,uondoor,avoid,omx,omy,gx,gy);
|
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/ |
H A D | dogmove.c | 266 register int omx, omy; local 271 omx = mtmp->mx; 290 if((obj=level.objects[omx][omy]) && !index(nofetch,obj->oclass) 301 return dog_eat(mtmp, obj, omx, omy, FALSE); 307 if (cansee(omx, omy) && flags.verbose) 311 newsym(omx,omy); 336 register int omx, omy; local 348 omx = mtmp->mx; 351 in_masters_sight = couldsee(omx, omy); 359 #define DDIST(x,y) (dist2(x,y,omx,om 483 int omx, omy; /* original mtmp position */ local [all...] |
H A D | steal.c | 528 int omx = mon->mx, omy = mon->my; local 540 !obj->unpaid && costly_spot(omx, omy)) { 546 if (verbosely && cansee(omx, omy)) 548 if (!flooreffects(obj, omx, omy, "fall")) { 549 place_object(obj, omx, omy); 582 register int omx = mtmp->mx, omy = mtmp->my; local 621 (void) mkgold(g, omx, omy); 622 if (is_pet && cansee(omx, omy) && flags.verbose) 629 if (show & cansee(omx, omy)) 630 newsym(omx, om [all...] |
H A D | priest.c | 24 move_special(mtmp,in_his_shop,appr,uondoor,avoid,omx,omy,gx,gy) 29 register xchar omx,omy,gx,gy; 39 if(omx == gx && omy == gy) 46 nix = omx; 87 nix == omx && niy == omy && onlineu(omx,omy)) { 94 if(nix != omx || niy != omy) { 95 remove_monster(omx, omy); 147 register xchar gx,gy,omx,omy; local 151 omx [all...] |
H A D | monmove.c | 611 int omx = mtmp->mx, omy = mtmp->my; 712 omx = mtmp->mx; 723 boolean should_see = (couldsee(omx, omy) && 725 !levl[omx][omy].lit) && 726 (dist2(omx, omy, gx, gy) <= 36)); 749 cp = gettrack(omx,omy); 796 if(distmin(mtmp->mux, mtmp->muy, omx, omy) < SQSRCHRADIUS && 802 && (!*in_rooms(omx, omy, SHOPBASE) || (!rn2(25) && !mtmp->isshk))) { 804 oomx = min(COLNO-1, omx+minr); 806 lmx = max(1, omx [all...] |
H A D | shk.c | 3197 register xchar gx,gy,omx,omy; local 3204 omx = shkp->mx; 3210 if((udist = distu(omx,omy)) < 3 && 3211 (shkp->data != &mons[PM_GRID_BUG] || (omx==u.ux || omy==u.uy))) { 3245 satdoor = (gx == omx && gy == omy); 3288 || avoid) && GDIST(omx,omy) < 3) { 3289 if (!badinv && !onlineu(omx,omy)) 3297 z = move_special(shkp,inhishop(shkp),appr,uondoor,avoid,omx,omy,gx,gy);
|