Home | History | Annotate | Download | only in hack

Lines Matching defs:troom

118 	struct mkroom  *croom, *troom;
148 troom = croom;
150 if (croom >= troom)
198 troom = &rooms[nroom];
201 troom->rtype = VAULT; /* treasure vault */
202 for (x = troom->lx; x <= troom->hx; x++)
203 for (y = troom->ly; y <= troom->hy; y++)
574 struct mkroom *croom, *troom;
578 troom = &rooms[b];
581 * find positions cc and tt for doors in croom and troom and
585 if (troom->hx < 0 || croom->hx < 0 || doorindex >= DOORMAX)
587 if (troom->lx > croom->hx) {
591 tx = troom->lx - 1;
593 tt = finddpos(tx, troom->ly, tx, troom->hy);
594 } else if (troom->hy < croom->ly) {
599 ty = troom->hy + 1;
600 tt = finddpos(troom->lx, ty, troom->hx, ty);
601 } else if (troom->hx < croom->lx) {
605 tx = troom->hx + 1;
607 tt = finddpos(tx, troom->ly, tx, troom->hy);
612 ty = troom->ly - 1;
614 tt = finddpos(troom->lx, ty, troom->hx, ty);
701 dodoor(tt.x, tt.y, troom);