Home | History | Annotate | Download | only in rogue

Lines Matching refs:rogue

56 #include "rogue.h"
77 row = rogue.row;
78 col = rogue.col;
86 if (!can_move(rogue.row, rogue.col, row, col)) {
121 } else if ((dungeon[rogue.row][rogue.col] & DOOR) &&
124 wake_room(cur_room, 0, rogue.row, rogue.col);
130 mvaddch(rogue.row, rogue.col, get_dungeon_char(rogue.row, rogue.col));
131 mvaddch(row, col, rogue.fchar);
136 rogue.row = row;
137 rogue.col = col;
196 row = rogue.row;
197 col = rogue.col;
205 (dungeon[rogue.row][rogue.col] & TUNNEL)) {
221 (dungeon[rogue.row][rogue.col] & TUNNEL)) {
254 i_end = (rogue.row < (DROWS-2)) ? 1 : 0;
255 j_end = (rogue.col < (DCOLS-1)) ? 1 : 0;
257 for (i = ((rogue.row > MIN_ROW) ? -1 : 0); i <= i_end; i++) {
258 for (j = ((rogue.col > 0) ? -1 : 0); j <= j_end; j++) {
262 if (((rogue.row+i) == drow) && ((rogue.col+j) == dcol)) {
265 row = rogue.row + i;
266 col = rogue.col + j;
271 /* If the rogue used to be right, up, left, down, or right of
275 (!((row == rogue.row) || (col == rogue.col)))) {
283 (!((row == rogue.row) || (col == rogue.col)))) {
380 if (rogue.moves_left == HUNGRY) {
385 if (rogue.moves_left == WEAK) {
390 if (rogue.moves_left <= FAINT) {
391 if (rogue.moves_left == FAINT) {
396 n = get_rand(0, (FAINT - rogue.moves_left));
400 rogue.moves_left++;
414 if (rogue.moves_left <= STARVE) {
423 rogue.moves_left -= (rogue.moves_left % 2);
426 rogue.moves_left--;
429 rogue.moves_left--;
431 rogue.moves_left -= (rogue.moves_left % 2);
434 rogue.moves_left--;
436 rogue.moves_left--;
447 if ((rogue.moves_left <= HUNGRY) || (cur_level >= max_level)) {
482 if (dungeon[rogue.row][rogue.col] & TRAP) {
483 trap_player(rogue.row, rogue.col);
556 if (rogue.hp_current == rogue.hp_max) {
560 if (rogue.exp != heal_exp) {
561 heal_exp = rogue.exp;
604 rogue.hp_current++;
606 rogue.hp_current++;
608 if ((rogue.hp_current += regeneration) > rogue.hp_max) {
609 rogue.hp_current = rogue.hp_max;
627 short crow = rogue.row, ccol = rogue.col, turns = 0;