summaryrefslogtreecommitdiffstats
path: root/phantasia/fight.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-05-25 23:08:45 +0000
committerdholland <dholland@NetBSD.org>2009-05-25 23:08:45 +0000
commit28a2fb534d0a6db57738352113f148c57f1078f1 (patch)
treec3c7bfe1d0d779ea9aa7888315f49c8d951b148f /phantasia/fight.c
parentdb71584135fee53a454ac992bfaef83923ef082d (diff)
downloadbsdgames-darwin-28a2fb534d0a6db57738352113f148c57f1078f1.tar.gz
bsdgames-darwin-28a2fb534d0a6db57738352113f148c57f1078f1.tar.zst
bsdgames-darwin-28a2fb534d0a6db57738352113f148c57f1078f1.zip
ANSIfy function declarations. Object file diffs cross-checked.
Diffstat (limited to 'phantasia/fight.c')
-rw-r--r--phantasia/fight.c27
1 files changed, 12 insertions, 15 deletions
diff --git a/phantasia/fight.c b/phantasia/fight.c
index cb446828..d001dabe 100644
--- a/phantasia/fight.c
+++ b/phantasia/fight.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fight.c,v 1.10 2004/04/11 13:35:06 he Exp $ */
+/* $NetBSD: fight.c,v 1.11 2009/05/25 23:08:45 dholland Exp $ */
/*
* fight.c Phantasia monster fighting routines
@@ -9,8 +9,7 @@
#include <curses.h>
void
-encounter(particular)
- int particular;
+encounter(int particular)
{
volatile bool firsthit = Player.p_blessing; /* set if player gets
* the first hit */
@@ -154,7 +153,7 @@ encounter(particular)
}
int
-pickmonster()
+pickmonster(void)
{
if (Player.p_specialtype == SC_VALAR)
/* even chance of any monster */
@@ -194,7 +193,7 @@ pickmonster()
}
void
-playerhits()
+playerhits(void)
{
double inflict; /* damage inflicted */
int ch; /* input */
@@ -337,7 +336,7 @@ playerhits()
}
void
-monsthits()
+monsthits(void)
{
double inflict; /* damage inflicted */
int ch; /* input */
@@ -587,7 +586,7 @@ SPECIALHIT:
}
void
-cancelmonster()
+cancelmonster(void)
{
Curmonster.m_energy = 0.0;
Curmonster.m_experience = 0.0;
@@ -596,8 +595,7 @@ cancelmonster()
}
void
-hitmonster(inflict)
- double inflict;
+hitmonster(double inflict)
{
mvprintw(Lines++, 0, "You hit %s %.0f times!", Enemyname, inflict);
Curmonster.m_energy -= inflict;
@@ -624,7 +622,7 @@ hitmonster(inflict)
}
void
-throwspell()
+throwspell(void)
{
double inflict; /* damage inflicted */
double dtemp; /* for dtemporary calculations */
@@ -834,8 +832,7 @@ throwspell()
}
void
-callmonster(which)
- int which;
+callmonster(int which)
{
struct monster Othermonster; /* to find a name for mimics */
@@ -912,7 +909,7 @@ callmonster(which)
}
void
-awardtreasure()
+awardtreasure(void)
{
int whichtreasure; /* calculated treasure to grant */
int temp; /* temporary */
@@ -1336,7 +1333,7 @@ awardtreasure()
}
void
-cursedtreasure()
+cursedtreasure(void)
{
if (Player.p_charms > 0) {
addstr("But your charm saved you!\n");
@@ -1353,7 +1350,7 @@ cursedtreasure()
}
void
-scramblestats()
+scramblestats(void)
{
double dbuf[6]; /* to put statistic in */
double dtemp1, dtemp2; /* for swapping values */