Home | History | Annotate | Download | only in rogue

Lines Matching defs:rn

106 light_up_room(int rn)
111 for (i = rooms[rn].top_row;
112 i <= rooms[rn].bottom_row; i++) {
113 for (j = rooms[rn].left_col;
114 j <= rooms[rn].right_col; j++) {
154 darken_room(short rn)
158 for (i = rooms[rn].top_row + 1; i < rooms[rn].bottom_row; i++) {
159 for (j = rooms[rn].left_col + 1; j < rooms[rn].right_col; j++) {
255 short rn;
261 rn = get_room_number(r, c);
262 } while ((rn == NO_ROOM) ||
265 (!(rooms[rn].is_room & (R_ROOM | R_MAZE))) ||
285 party_objects(int rn)
293 N = ((rooms[rn].bottom_row - rooms[rn].top_row) - 1) *
294 ((rooms[rn].right_col - rooms[rn].left_col) - 1);
301 row = get_rand(rooms[rn].top_row+1,
302 rooms[rn].bottom_row-1);
303 col = get_rand(rooms[rn].left_col+1,
304 rooms[rn].right_col-1);
356 visit_rooms(int rn)
361 rooms_visited[rn] = 1;
364 oth_rn = rooms[rn].doors[i].oth_room;
424 short i, j, k, rn;
434 rn = get_room_number(row, col);
441 if ((!(rooms[rr].is_room & (R_ROOM | R_MAZE))) || (rr == rn)) {
445 if (rooms[rr].doors[k].oth_room == rn) {
457 if (rn == NO_ROOM)
459 for (i = rooms[rn].top_row; i <= rooms[rn].bottom_row; i++) {
460 for (j = rooms[rn].left_col; j <= rooms[rn].right_col; j++) {
472 if (rooms[i].doors[j].oth_room == rn) {
474 if (rooms[rn].doors[k].oth_room == i) {
475 monster->trow = rooms[rn].doors[k].oth_row;
476 monster->tcol = rooms[rn].doors[k].oth_col;
486 if (rn == NO_ROOM || !get_oth_room(rn, &row, &col)) {
496 get_oth_room(short rn, short *row, short *col)
500 if (*row == rooms[rn].top_row) {
502 } else if (*row == rooms[rn].bottom_row) {
504 } else if (*col == rooms[rn].left_col) {
506 } else if (*col == rooms[rn].right_col) {
509 if ((d != -1) && (rooms[rn].doors[d].oth_room >= 0)) {
510 *row = rooms[rn].doors[d].oth_row;
511 *col = rooms[rn].doors[d].oth_col;