Searched refs:croom (Results 1 - 3 of 3) sorted by relevance

/openbsd-current/games/hack/
H A Dhack.mklev.c69 #define somex() ((random()%(croom->hx-croom->lx+1))+croom->lx)
70 #define somey() ((random()%(croom->hy-croom->ly+1))+croom->ly)
107 struct mkroom *croom, *troom; local
131 croom = &rooms[rn2(nroom)];
137 troom = croom;
138 croom
437 struct mkroom *croom; local
541 struct mkroom *croom, *troom; local
739 mktrap(int num, int mazeflag, struct mkroom *croom) argument
[all...]
H A Dhack.trap.c344 struct mkroom *croom; local
346 for(croom = &rooms[0]; croom->hx >= 0; croom++)
347 if(croom->rtype == VAULT) {
350 x = rn2(2) ? croom->lx : croom->hx;
351 y = rn2(2) ? croom->ly : croom->hy;
H A Dhack.dog.c449 struct mkroom *croom = &rooms[0]; local
450 while(croom->hx >= 0){
451 if(croom->hx >= x-1 && croom->lx <= x+1 &&
452 croom->hy >= y-1 && croom->ly <= y+1)
453 return(croom - rooms);
454 croom++;

Completed in 124 milliseconds