-/* $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)
{
}
}
-void
+static void
battleplayer(long foeplace)
{
double dtemp; /* for temporary calculations */
death("Interterminal battle");
}
-void
+static void
myturn(void)
{
double dtemp; /* for temporary calculations */
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 */
fseek(Energyvoidfp, 0L, SEEK_SET);
}
-long
+static long
allocvoid(void)
{
long loc = 0L; /* location of new energy void */