Home
last modified time | relevance | path

Searched refs:winddir (Results 1 – 10 of 10) sorted by relevance

/openbsd/games/sail/
H A Dgame.c67 if (dir == winddir) in maxmove()
69 else if (dir == winddir + 2 || dir == winddir - 2 || dir == winddir - 6 || dir == winddir + 6) in maxmove()
71 else if (dir == winddir + 3 || dir == winddir - 3 || dir == winddir - 5 || dir == winddir + 5) in maxmove()
73 else if (dir == winddir + 4 || dir == winddir - 4) in maxmove()
H A Dpl_7.c324 maxmove(ms, winddir + 3, -1) + '0', in draw_stat()
325 maxmove(ms, winddir + 3, 1) + '0'); in draw_stat()
328 maxmove(ms, winddir + 2, -1) + '0', in draw_stat()
329 maxmove(ms, winddir + 2, 1) + '0'); in draw_stat()
332 maxmove(ms, winddir + 1, -1) + '0', in draw_stat()
333 maxmove(ms, winddir + 1, 1) + '0'); in draw_stat()
335 maxmove(ms, winddir, -1) + '0', in draw_stat()
336 maxmove(ms, winddir, 1) + '0'); in draw_stat()
396 (void) wmove(slot_w, Y - dr[winddir], 1 - dc[winddir]); in draw_slot()
397 switch (winddir) { in draw_slot()
[all …]
H A Ddr_1.c439 winddir = 1; in next()
444 winddir++; in next()
447 winddir--; in next()
450 winddir += 2; in next()
453 winddir -= 2; in next()
456 if (winddir > 8) in next()
457 winddir -= 8; in next()
458 if (winddir < 1) in next()
459 winddir += 8; in next()
473 Write(W_WIND, SHIP(0), winddir, windspeed, 0, 0); in next()
H A Ddr_main.c78 winddir = cc->winddir; in dr_main()
H A Dpl_main.c97 winddir = cc->winddir; in initialize()
H A Ddr_2.c212 *row -= dr[winddir]; in move_ship()
213 *col -= dc[winddir]; in move_ship()
H A Ddr_3.c249 sp->file->row -= dr[winddir]; in step()
250 sp->file->col -= dc[winddir]; in step()
H A Dextern.h225 char winddir; /* 0 */ member
291 extern int winddir;
H A Dglobals.c552 int winddir; variable
H A Dsync.c475 winddir = a; in sync_update()