Lines Matching refs:player_loc
98 static int player_loc = -1; /* player location */
267 player_loc, arrows_left, plural(arrows_left));
277 cave[player_loc].tunnel[0]);
280 if (cave[player_loc].tunnel[i] <= room_num)
281 (void)printf("%d, ", cave[player_loc].tunnel[i]);
282 (void)printf("and %d.\n", cave[player_loc].tunnel[link_num - 1]);
332 cave[player_loc].tunnel[link_num-1] != next_room)
341 cave[player_loc].tunnel[link_num-1] != next_room) {
355 if (cave[player_loc].tunnel[i] == next_room)
363 if (wumpus_loc == player_loc) {
375 player_loc = next_room;
395 next_room = player_loc = (random() % room_num) + 1;
422 arrow_location = player_loc;
451 if (lnk == player_loc)
492 if (arrow_location == player_loc) {
508 if (wumpus_loc == player_loc)
657 player_loc = (random() % room_num) + 1;
659 } while (player_loc == wumpus_loc || cave[player_loc].has_a_pit ||
660 cave[player_loc].has_a_bat || (level == HARD ?
662 (i > 100 && player_loc != wumpus_loc));
697 if (cave[cave[player_loc].tunnel[i]].has_a_bat)
709 if (cave[cave[player_loc].tunnel[i]].has_a_pit)
721 if (cave[player_loc].tunnel[i] == wumpus_loc)
724 if (cave[cave[player_loc].tunnel[i]].tunnel[j] ==