-/* $NetBSD: phantglobs.h,v 1.4 1997/10/13 02:18:35 lukem Exp $ */
+/* $NetBSD: phantglobs.h,v 1.11 2009/08/12 08:21:41 dholland Exp $ */
/*
* phantglobs.h - global declarations for Phantasia
extern long Fileloc; /* location in file of player statistics */
-extern char *Login; /* pointer to login of current player */
-extern char *Enemyname; /* pointer name of monster/player we are battling*/
+extern const char *Login; /* pointer to login of current player */
+extern const char *Enemyname; /* pointer name of monster/player we are battling*/
extern struct player Player; /* stats for player */
extern struct player Other; /* stats for another player */
extern struct energyvoid Enrgyvoid;/* energy void buffer */
-extern struct charstats Stattable[];/* used for rolling and changing player stats*/
+extern const struct charstats Stattable[];/* used for rolling and changing player stats*/
-extern struct charstats *Statptr;/* pointer into Stattable[] */
+extern const struct charstats *Statptr;/* pointer into Stattable[] */
-extern struct menuitem Menu[]; /* menu of items for purchase */
+extern const struct menuitem Menu[]; /* menu of items for purchase */
extern FILE *Playersfp; /* pointer to open player file */
extern FILE *Monstfp; /* pointer to open monster file */
extern char Databuf[]; /* a place to read data into */
/* some canned strings for messages */
-extern char Illcmd[];
-extern char Illmove[];
-extern char Illspell[];
-extern char Nomana[];
-extern char Somebetter[];
-extern char Nobetter[];
+extern const char Illcmd[];
+extern const char Illmove[];
+extern const char Illspell[];
+extern const char Nomana[];
+extern const char Somebetter[];
+extern const char Nobetter[];
/* functions which we need to know about */
-char *descrlocation __P((struct player *, bool));
-char *descrstatus __P((struct player *));
-char *descrtype __P((struct player *, bool));
-void activelist __P((void));
-void adjuststats __P((void));
-long allocrecord __P((void));
-long allocvoid __P((void));
-void allstatslist __P((void));
-void altercoordinates __P((double, double, int));
-void awardtreasure __P((void));
-void battleplayer __P((long));
-void callmonster __P((int));
-void cancelmonster __P((void));
-void catchalarm __P((int));
-void changestats __P((bool));
-void checkbattle __P((void));
-void checktampered __P((void));
-void cleanup __P((int));
-void collecttaxes __P((double, double));
-void cursedtreasure __P((void));
-void death __P((char *));
-void displaystats __P((void));
-double distance __P((double, double, double, double));
-void dotampered __P((void));
-double drandom __P((void));
-void encounter __P((int));
-void enterscore __P((void));
-void error __P((char *));
-double explevel __P((double));
-long findname __P((char *, struct player *));
-void freerecord __P((struct player *, long));
-void genchar __P((int));
-int getanswer __P((char *, bool));
-void getstring __P((char *, int));
-void hitmonster __P((double));
-void ill_sig __P((int));
-double infloat __P((void));
-void initialstate __P((void));
-void initplayer __P((struct player *));
-int inputoption __P((void));
-void interrupt __P((void));
-void leavegame __P((void));
-void monsthits __P((void));
-void monstlist __P((void));
-void more __P((int));
-void movelevel __P((void));
-void myturn __P((void));
-void neatstuff __P((void));
-int pickmonster __P((void));
-void playerhits __P((void));
-void playinit __P((void));
-void procmain __P((void));
-void purgeoldplayers __P((void));
-void readmessage __P((void));
-void readrecord __P((struct player *, long));
-long recallplayer __P((void));
-long recallplayer __P((void));
-long rollnewplayer __P((void));
-void scorelist __P((void));
-void scramblestats __P((void));
-void tampered __P((int, double, double));
-void throneroom __P((void));
-void throwspell __P((void));
-void titlelist __P((void));
-void tradingpost __P((void));
-void truncstring __P((char *));
-void userlist __P((bool));
-void writerecord __P((struct player *, long));
-void writevoid __P((struct energyvoid *, long));
+const char *descrlocation(struct player *, bool);
+const char *descrstatus(struct player *);
+const char *descrtype(struct player *, bool);
+void activelist(void);
+void adjuststats(void);
+long allocrecord(void);
+void allstatslist(void);
+void altercoordinates(double, double, int);
+void changestats(bool);
+void checkbattle(void);
+void checktampered(void);
+void cleanup(int);
+void collecttaxes(double, double);
+void death(const char *);
+void displaystats(void);
+double distance(double, double, double, double);
+void dotampered(void);
+double drandom(void);
+void encounter(int);
+void enterscore(void);
+void error(const char *);
+long findname(const char *, struct player *);
+void freerecord(struct player *, long);
+int getanswer(const char *, bool);
+void getstring(char *, int);
+void ill_sig(int);
+double infloat(void);
+void initplayer(struct player *);
+int inputoption(void);
+void interrupt(void);
+void leavegame(void);
+void monstlist(void);
+void more(int);
+void purgeoldplayers(void);
+void readmessage(void);
+void readrecord(struct player *, long);
+void scorelist(void);
+void throneroom(void);
+void tradingpost(void);
+void truncstring(char *);
+void userlist(bool);
+void writerecord(struct player *, long);
+void writevoid(struct energyvoid *, long);