summaryrefslogtreecommitdiffstats
path: root/phantasia
diff options
context:
space:
mode:
authorross <ross@NetBSD.org>2004-04-07 17:46:47 +0000
committerross <ross@NetBSD.org>2004-04-07 17:46:47 +0000
commit0cf3d63b421b88cc05b4ac55af656f84128713f4 (patch)
tree69fc5b12037df0d93fe4e592b4423030a2f8f5ec /phantasia
parentacc53772d30828b53555695b5a70ddc4b7149ee0 (diff)
downloadbsdgames-darwin-0cf3d63b421b88cc05b4ac55af656f84128713f4.tar.gz
bsdgames-darwin-0cf3d63b421b88cc05b4ac55af656f84128713f4.tar.zst
bsdgames-darwin-0cf3d63b421b88cc05b4ac55af656f84128713f4.zip
Rework to use curses.h only on the target, not on the host.
Diffstat (limited to 'phantasia')
-rw-r--r--phantasia/fight.c3
-rw-r--r--phantasia/gamesupport.c3
-rw-r--r--phantasia/include.h4
-rw-r--r--phantasia/interplayer.c3
-rw-r--r--phantasia/io.c3
-rw-r--r--phantasia/main.c3
-rw-r--r--phantasia/misc.c3
-rw-r--r--phantasia/phantstruct.h4
-rw-r--r--phantasia/setup.c4
9 files changed, 19 insertions, 11 deletions
diff --git a/phantasia/fight.c b/phantasia/fight.c
index a44b4d10..fbd45546 100644
--- a/phantasia/fight.c
+++ b/phantasia/fight.c
@@ -1,10 +1,11 @@
-/* $NetBSD: fight.c,v 1.8 2004/02/08 00:32:07 jsm Exp $ */
+/* $NetBSD: fight.c,v 1.9 2004/04/07 17:46:47 ross Exp $ */
/*
* fight.c Phantasia monster fighting routines
*/
#include "include.h"
+#include <curses.h>
void
encounter(particular)
diff --git a/phantasia/gamesupport.c b/phantasia/gamesupport.c
index 6c6d8044..3efff88b 100644
--- a/phantasia/gamesupport.c
+++ b/phantasia/gamesupport.c
@@ -1,10 +1,11 @@
-/* $NetBSD: gamesupport.c,v 1.6 1999/09/08 21:57:19 jsm Exp $ */
+/* $NetBSD: gamesupport.c,v 1.7 2004/04/07 17:46:47 ross Exp $ */
/*
* gamesupport.c - auxiliary routines for support of Phantasia
*/
#include "include.h"
+#include <curses.h>
void
changestats(ingameflag)
diff --git a/phantasia/include.h b/phantasia/include.h
index 4b982a49..e54c5c49 100644
--- a/phantasia/include.h
+++ b/phantasia/include.h
@@ -1,15 +1,15 @@
-/* $NetBSD: include.h,v 1.4 1997/10/13 02:18:19 lukem Exp $ */
+/* $NetBSD: include.h,v 1.5 2004/04/07 17:46:47 ross Exp $ */
/*
* include.h - includes all important files for Phantasia
*/
#include <ctype.h>
-#include <curses.h>
#include <errno.h>
#include <math.h>
#include <setjmp.h>
#include <signal.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
diff --git a/phantasia/interplayer.c b/phantasia/interplayer.c
index 993c1621..53cd37ba 100644
--- a/phantasia/interplayer.c
+++ b/phantasia/interplayer.c
@@ -1,10 +1,11 @@
-/* $NetBSD: interplayer.c,v 1.6 1999/09/18 19:38:52 jsm Exp $ */
+/* $NetBSD: interplayer.c,v 1.7 2004/04/07 17:46:47 ross Exp $ */
/*
* interplayer.c - player to player routines for Phantasia
*/
#include "include.h"
+#include <curses.h>
void
checkbattle()
diff --git a/phantasia/io.c b/phantasia/io.c
index 5a4c0093..ea61b689 100644
--- a/phantasia/io.c
+++ b/phantasia/io.c
@@ -1,10 +1,11 @@
-/* $NetBSD: io.c,v 1.6 2004/02/08 00:32:07 jsm Exp $ */
+/* $NetBSD: io.c,v 1.7 2004/04/07 17:46:47 ross Exp $ */
/*
* io.c - input/output routines for Phantasia
*/
#include "include.h"
+#include <curses.h>
void
getstring(cp, mx)
diff --git a/phantasia/main.c b/phantasia/main.c
index f9beea8a..794eb42a 100644
--- a/phantasia/main.c
+++ b/phantasia/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.12 2004/01/01 16:03:46 jsm Exp $ */
+/* $NetBSD: main.c,v 1.13 2004/04/07 17:46:47 ross Exp $ */
/*
* Phantasia 3.3.2 -- Interterminal fantasy game
@@ -56,6 +56,7 @@
*/
#include "include.h"
+#include <curses.h>
int main(int, char **);
diff --git a/phantasia/misc.c b/phantasia/misc.c
index 4dc71b37..50f79c01 100644
--- a/phantasia/misc.c
+++ b/phantasia/misc.c
@@ -1,10 +1,11 @@
-/* $NetBSD: misc.c,v 1.10 2004/01/01 16:03:46 jsm Exp $ */
+/* $NetBSD: misc.c,v 1.11 2004/04/07 17:46:47 ross Exp $ */
/*
* misc.c Phantasia miscellaneous support routines
*/
#include "include.h"
+#include <curses.h>
void
diff --git a/phantasia/phantstruct.h b/phantasia/phantstruct.h
index 948bb232..7e023416 100644
--- a/phantasia/phantstruct.h
+++ b/phantasia/phantstruct.h
@@ -1,4 +1,6 @@
-/* $NetBSD: phantstruct.h,v 1.3 1999/09/08 21:17:55 jsm Exp $ */
+/* $NetBSD: phantstruct.h,v 1.4 2004/04/07 17:46:47 ross Exp $ */
+
+#define bool char
/*
* phantstruct.h - structure definitions for Phantasia
diff --git a/phantasia/setup.c b/phantasia/setup.c
index 029e9b6f..8e7a3ed7 100644
--- a/phantasia/setup.c
+++ b/phantasia/setup.c
@@ -1,4 +1,4 @@
-/* $NetBSD: setup.c,v 1.12 2003/05/08 13:03:49 wiz Exp $ */
+/* $NetBSD: setup.c,v 1.13 2004/04/07 17:46:47 ross Exp $ */
/*
* setup.c - set up all files for Phantasia
@@ -110,7 +110,7 @@ main(argc, argv)
}
/* put holy grail info into energy void file */
- Enrgyvoid.ev_active = TRUE;
+ Enrgyvoid.ev_active = 1;
Enrgyvoid.ev_x = ROLL(-1.0e6, 2.0e6);
Enrgyvoid.ev_y = ROLL(-1.0e6, 2.0e6);
path = strrchr(_PATH_VOID, '/') + 1;