From 28a2fb534d0a6db57738352113f148c57f1078f1 Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 25 May 2009 23:08:45 +0000 Subject: ANSIfy function declarations. Object file diffs cross-checked. --- phantasia/fight.c | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'phantasia/fight.c') 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 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 */ -- cgit v1.2.3-56-ge451