+/* $NetBSD: pl_2.c,v 1.4 1997/10/13 19:45:01 christos Exp $ */
+
/*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1983, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
-/*static char sccsid[] = "from: @(#)pl_2.c 5.4 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: pl_2.c,v 1.2 1993/08/01 18:51:40 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)pl_2.c 8.1 (Berkeley) 5/31/93";
+#else
+__RCSID("$NetBSD: pl_2.c,v 1.4 1997/10/13 19:45:01 christos Exp $");
+#endif
#endif /* not lint */
#include "player.h"
+void
play()
{
- register struct ship *sp;
+ struct ship *sp;
for (;;) {
switch (sgetch("~\b", (struct ship *)0, 0)) {
unfoulplayer();
break;
case 'v':
- Signal("%s", (struct ship *)0, version);
+ Msg("%s", version);
break;
case 'b':
acceptboard();
repair();
break;
case 'B':
- Signal("'Hands to stations!'", (struct ship *)0);
+ Msg("'Hands to stations!'");
unboard(ms, ms, 1); /* cancel DBP's */
unboard(ms, ms, 0); /* cancel offense */
break;
mf->loadR = L_EMPTY;
mf->readyL = R_EMPTY;
mf->readyR = R_EMPTY;
- Signal("Broadsides unloaded", (struct ship *)0);
+ Msg("Broadsides unloaded");
break;
case 'q':
- Signal("Type 'Q' to quit", (struct ship *)0);
+ Msg("Type 'Q' to quit");
break;
case 'Q':
leave(LEAVE_QUIT);
break;
case 'i':
if ((sp = closestenemy(ms, 0, 1)) == 0)
- Signal("No more ships left.");
+ Msg("No more ships left.");
else
eyeball(sp);
break;