Searched refs:Maze (Results 1 – 10 of 10) sorted by relevance
| /netbsd/src/games/hunt/huntd/ |
| D | makemaze.c | 40 #define ISCLEAR(y,x) (Maze[y][x] == SPACE) 104 Maze[y][x] = SPACE; /* Clear this spot */ 129 Maze[y][x] = SPACE; in dig_maze() 157 if (Maze[ty][tx] == SPACE) in dig_maze() 159 Maze[(y + ty) / 2][(x + tx) / 2] = SPACE; in dig_maze() 173 sp = &Maze[y][x]; in remap() 177 if (y - 1 >= 0 && Maze[y - 1][x] != SPACE) in remap() 179 if (y + 1 < HEIGHT && Maze[y + 1][x] != SPACE) in remap() 181 if (x + 1 < WIDTH && Maze[y][x + 1] != SPACE) in remap() 183 if (x - 1 >= 0 && Maze[y][x - 1] != SPACE) in remap() [all …]
|
| D | expl.c | 88 switch (Maze[y][x]) { in showexpl() 124 c = Maze[y][x]; in rollexpl() 170 switch (Maze[r->r_y][r->r_x]) { in remove_wall() 177 save_char = Maze[r->r_y][r->r_x]; in remove_wall() 181 if (Maze[r->r_y][r->r_x] == SPACE) in remove_wall() 193 Maze[r->r_y][r->r_x] = Orig_maze[r->r_y][r->r_x]; in remove_wall() 205 Maze[r->r_y][r->r_x] = FLYER; in remove_wall() 209 Maze[r->r_y][r->r_x] = Orig_maze[r->r_y][r->r_x]; in remove_wall() 213 Maze[r->r_y][r->r_x] = DOOR; in remove_wall() 217 Maze[r->r_y][r->r_x] = WALL4; in remove_wall() [all …]
|
| D | shots.c | 91 Maze[y][x] = bp->b_over; in moveshots() 156 Maze[pp->p_y][pp->p_x] = pp->p_face; in moveshots() 213 switch (Maze[y][x]) { in move_normal_shot() 242 Maze[y][x] = WALL5; in move_normal_shot() 263 Maze[y][x] = WALL4; in move_normal_shot() 304 if (opposite(bp->b_face, Maze[y][x])) { in move_normal_shot() 383 if (isplayer(Maze[bp->b_y][bp->b_x - 1])) { in move_drone() 387 if (isplayer(Maze[bp->b_y - 1][bp->b_x])) { in move_drone() 391 if (isplayer(Maze[bp->b_y + 1][bp->b_x])) { in move_drone() 395 if (isplayer(Maze[bp->b_y][bp->b_x + 1])) { in move_drone() [all …]
|
| D | draw.c | 188 sp = &Maze[y][x]; in see() 212 sp = &Maze[y][++x]; in see() 236 sp = &Maze[--y][x]; in see() 241 sp -= sizeof Maze[0]; in see() 248 sp = &Maze[++y][x]; in see() 253 sp += sizeof Maze[0]; in see() 269 indx = y * sizeof Maze[0] + x; in check() 270 ch = ((char *) Maze)[indx]; in check() 322 Maze[y][x] = draw ? pp->p_face : pp->p_over; in drawplayer() 390 return Maze[y][x]; in player_sym() [all …]
|
| D | answer.c | 229 memcpy(pp->p_maze, Maze, sizeof Maze); in stmonitor() 262 newpp->p_maze[y][x] = Maze[y][x]; in stplayer() 265 newpp->p_maze[y][x] = Maze[y][x]; in stplayer() 269 newpp->p_maze[y][x] = Maze[y][x]; in stplayer() 273 newpp->p_maze[y][x] = Maze[y][x]; in stplayer() 278 } while (Maze[y][x] != SPACE); in stplayer() 319 } while (Maze[y][x] != SPACE); in stplayer() 320 Maze[y][x] = GMINE; in stplayer() 329 } while (Maze[y][x] != SPACE); in stplayer() 330 Maze[y][x] = MINE; in stplayer()
|
| D | execute.c | 219 switch (Maze[y][x]) { in move_player() 237 pickup(pp, y, x, 2, Maze[y][x]); in move_player() 239 pickup(pp, y, x, 95, Maze[y][x]); in move_player() 241 pickup(pp, y, x, 50, Maze[y][x]); in move_player() 242 Maze[y][x] = SPACE; in move_player() 258 Maze[y][x] = SPACE; in move_player() 282 if (Maze[y][x] == BOOT) in move_player() 299 Maze[y][x] = SPACE; in move_player() 315 pp->p_over = Maze[y][x]; in move_player()
|
| D | driver.c | 522 } while (Maze[y][x] != SPACE); in makeboots() 523 Maze[y][x] = BOOT_PAIR; in makeboots() 767 Maze[pp->p_y][pp->p_x] = BOOT_PAIR; in zap() 769 Maze[pp->p_y][pp->p_x] = BOOT; in zap() 772 Maze[pp->p_y][pp->p_x]); in zap() 782 } while (Maze[y][x] != SPACE); in zap() 796 } while (Maze[y][x] != SPACE); in zap()
|
| D | extern.c | 45 char Maze[HEIGHT][WIDTH2]; /* the maze */ variable
|
| D | hunt.h | 137 extern char Buf[BUFSIZ], Maze[HEIGHT][WIDTH2], Orig_maze[HEIGHT][WIDTH2];
|
| /netbsd/src/etc/ |
| D | services | 18178 # Maze Pseudo game.
|