SCCS-vsn: games/sail/player.h 2.4
SCCS-vsn: games/sail/pl_1.c 2.4
SCCS-vsn: games/sail/pl_2.c 2.3
SCCS-vsn: games/sail/pl_3.c 2.2
SCCS-vsn: games/sail/pl_5.c 2.2
SCCS-vsn: games/sail/pl_6.c 2.2
SCCS-vsn: games/sail/pl_7.c 2.4
-static char *sccsid = "@(#)pl_1.c 2.3 83/11/02";
+static char *sccsid = "@(#)pl_1.c 2.4 83/12/09";
#endif
#include "player.h"
#endif
#include "player.h"
(void) sprintf(message, "Captain %s assuming command", captain);
Write(W_SIGNAL, ms, 1, (int)message, 0, 0, 0);
newturn();
(void) sprintf(message, "Captain %s assuming command", captain);
Write(W_SIGNAL, ms, 1, (int)message, 0, 0, 0);
newturn();
-static char *sccsid = "@(#)pl_2.c 2.2 83/11/08";
+static char *sccsid = "@(#)pl_2.c 2.3 83/12/09";
#endif
#include "player.h"
#endif
#include "player.h"
break;
case '\f':
centerview();
break;
case '\f':
centerview();
draw_board();
draw_screen();
draw_board();
draw_screen();
break;
case 'L':
mf->loadL = L_EMPTY;
break;
case 'L':
mf->loadL = L_EMPTY;
break;
case 'C':
centerview();
break;
case 'C':
centerview();
break;
case 'U':
upview();
break;
case 'U':
upview();
break;
case 'D':
case 'N':
downview();
break;
case 'D':
case 'N':
downview();
break;
case 'H':
leftview();
break;
case 'H':
leftview();
break;
case 'J':
rightview();
break;
case 'J':
rightview();
break;
case 'F':
lookout();
break;
case 'S':
dont_adjust = !dont_adjust;
break;
case 'F':
lookout();
break;
case 'S':
dont_adjust = !dont_adjust;
-static char *sccsid = "@(#)pl_3.c 2.1 83/10/31";
+static char *sccsid = "@(#)pl_3.c 2.2 83/12/09";
#endif
#include "player.h"
#endif
#include "player.h"
Signal("Unable to fire %s broadside",
(struct ship *)0, r ? "right" : "left");
}
Signal("Unable to fire %s broadside",
(struct ship *)0, r ? "right" : "left");
}
-static char *sccsid = "@(#)pl_5.c 2.1 83/10/31";
+static char *sccsid = "@(#)pl_5.c 2.2 83/12/09";
#endif
#include "player.h"
#endif
#include "player.h"
(struct ship *)0, 1);
parties(crew, ms, 1, c);
}
(struct ship *)0, 1);
parties(crew, ms, 1, c);
}
}
parties(crew, to, isdefense, buf)
}
parties(crew, to, isdefense, buf)
-static char *sccsid = "@(#)pl_6.c 2.1 83/10/31";
+static char *sccsid = "@(#)pl_6.c 2.2 83/12/09";
#endif
#include "player.h"
#endif
#include "player.h"
*repairs = 2;
} else {
*repairs = 0;
*repairs = 2;
} else {
*repairs = 0;
-static char *sccsid = "@(#)pl_7.c 2.3 83/11/08";
+static char *sccsid = "@(#)pl_7.c 2.4 83/12/09";
#endif
#include "player.h"
#endif
#include "player.h"
+ /* alarm already turned off */
if (done_curses) {
(void) wmove(scroll_w, SCROLL_Y - 1, 0);
(void) wclrtoeol(scroll_w);
if (done_curses) {
(void) wmove(scroll_w, SCROLL_Y - 1, 0);
(void) wclrtoeol(scroll_w);
- * sccsid = "@(#)player.h 2.3 %G%";
+ * sccsid = "@(#)player.h 2.4 %G%";
*/
#include <curses.h>
#include "externs.h"
*/
#include <curses.h>
#include "externs.h"
#define BOX_R (BOX_L+BOX_X-1)
#define TURN_T BOX_B
#define BOX_R (BOX_L+BOX_X-1)
#define TURN_T BOX_B
#define TURN_L ((BOX_L+BOX_R-TURN_X)/2)
#define TURN_Y 1
#define TURN_B (TURN_T+TURN_Y+1)
#define TURN_L ((BOX_L+BOX_R-TURN_X)/2)
#define TURN_Y 1
#define TURN_B (TURN_T+TURN_Y+1)
#define LEAVE_HURRICAN 2
#define LEAVE_DRIVER 3
#define LEAVE_FORK 4
#define LEAVE_HURRICAN 2
#define LEAVE_DRIVER 3
#define LEAVE_FORK 4
+
+#define blockalarm() ((void) sigblock(1 << SIGALRM-1))
+#define unblockalarm() ((void) sigsetmask(sigblock(0) & ~(1 << SIGALRM-1)))