]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - phantasia/interplayer.c
Dumping all system includes anything uses in one big header file is so 1986.
[bsdgames-darwin.git] / phantasia / interplayer.c
index d47d32e0a1e7337637558aabf3c31552f4d830c8..7f78368119b4273ea06a31a8c76e7980285572f1 100644 (file)
@@ -1,13 +1,29 @@
-/*     $NetBSD: interplayer.c,v 1.10 2009/05/25 23:08:45 dholland Exp $        */
+/*     $NetBSD: interplayer.c,v 1.12 2009/08/31 08:27:16 dholland Exp $        */
 
 /*
  * interplayer.c - player to player routines for Phantasia
  */
 
-#include "include.h"
+#include <math.h>
+#include <setjmp.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+
+#include "macros.h"
+#include "phantdefs.h"
+#include "phantstruct.h"
+#include "phantglobs.h"
+#include "pathnames.h"
+
 #undef bool
 #include <curses.h>
 
+static long allocvoid(void);
+static void battleplayer(long);
+static void myturn(void);
+static void tampered(int, double, double);
+
 void
 checkbattle(void)
 {
@@ -45,7 +61,7 @@ checkbattle(void)
        }
 }
 
-void
+static void
 battleplayer(long foeplace)
 {
        double  dtemp;          /* for temporary calculations */
@@ -273,7 +289,7 @@ LEAVE:
                death("Interterminal battle");
 }
 
-void
+static void
 myturn(void)
 {
        double  dtemp;          /* for temporary calculations */
@@ -384,7 +400,7 @@ checktampered(void)
                tampered(Other.p_tampered, Other.p_1scratch, Other.p_2scratch);
 }
 
-void
+static void
 tampered(int what, double arg1, double arg2)
 {
        long    loc;            /* location in file of other players */
@@ -866,7 +882,7 @@ writevoid(struct energyvoid *vp, long loc)
        fseek(Energyvoidfp, 0L, SEEK_SET);
 }
 
-long
+static long
 allocvoid(void)
 {
        long    loc = 0L;       /* location of new energy void */