-/* $NetBSD: interplayer.c,v 1.8 2004/04/11 13:35:06 he Exp $ */
+/* $NetBSD: interplayer.c,v 1.10 2009/05/25 23:08:45 dholland Exp $ */
/*
* interplayer.c - player to player routines for Phantasia
#include <curses.h>
void
-checkbattle()
+checkbattle(void)
{
long foeloc = 0L; /* location in file of person to fight */
}
void
-battleplayer(foeplace)
- long foeplace;
+battleplayer(long foeplace)
{
double dtemp; /* for temporary calculations */
double oldhits = 0.0; /* previous damage inflicted by foe */
}
void
-myturn()
+myturn(void)
{
double dtemp; /* for temporary calculations */
int ch; /* input */
}
void
-checktampered()
+checktampered(void)
{
long loc = 0L; /* location in energy void file */
}
void
-tampered(what, arg1, arg2)
- int what;
- double arg1;
- double arg2;
+tampered(int what, double arg1, double arg2)
{
long loc; /* location in file of other players */
}
void
-userlist(ingameflag)
- bool ingameflag;
+userlist(phbool ingameflag)
{
int numusers = 0; /* number of users on file */
}
void
-throneroom()
+throneroom(void)
{
FILE *fp; /* to clear energy voids */
long loc = 0L; /* location of old king in player file */
}
void
-dotampered()
+dotampered(void)
{
short tamper; /* value for tampering with other players */
const char *option; /* pointer to option description */
}
void
-writevoid(vp, loc)
- struct energyvoid *vp;
- long loc;
+writevoid(struct energyvoid *vp, long loc)
{
fseek(Energyvoidfp, loc, SEEK_SET);
}
long
-allocvoid()
+allocvoid(void)
{
long loc = 0L; /* location of new energy void */