Lines Matching defs:tunnel

90 	int tunnel[MAX_LINKS_IN_ROOM];
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)
415 * if any of the rooms they specify are not accessible via tunnel from
439 if (cave[arrow_location].tunnel[j] == next)
445 "A faint gleam tells you the arrow has gone through a magic tunnel!\n");
456 else if (cave[arrow_location].tunnel[lnk] > room_num)
458 "*thunk* The arrow flies randomly into a magic tunnel, thence into\n\
460 cave[arrow_location].tunnel[lnk]);
466 cave[arrow_location].tunnel[lnk]);
467 arrow_location = cave[arrow_location].tunnel[lnk];
548 cave[i].tunnel[j] = -1;
561 cave[i].tunnel[0] = lnk; /* forw link */
562 cave[lnk].tunnel[1] = i; /* back link */
567 if (cave[i].tunnel[j] != -1)
572 if (cave[i].tunnel[k] == lnk)
574 cave[i].tunnel[j] = lnk;
579 if (cave[lnk].tunnel[k] == i)
583 if (cave[lnk].tunnel[k] == -1) {
584 cave[lnk].tunnel[k] = i;
594 qsort(cave[i].tunnel, link_num,
595 sizeof(cave[i].tunnel[0]), int_compare);
602 (void)printf("%d ", cave[i].tunnel[j]);
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] ==
734 wumpus_loc = cave[wumpus_loc].tunnel[random() % link_num];
846 "\nWith a jaunty step you enter the magic tunnel. As you do, you\n\