]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - phantasia/phantglobs.h
WARNSify, KNFify (inc. removing extremely verbose & useless comments), ...
[bsdgames-darwin.git] / phantasia / phantglobs.h
1 /* $NetBSD: phantglobs.h,v 1.4 1997/10/13 02:18:35 lukem Exp $ */
2
3 /*
4 * phantglobs.h - global declarations for Phantasia
5 */
6
7 extern double Circle; /* which circle player is in */
8 extern double Shield; /* force field thrown up in monster battle */
9
10 extern bool Beyond; /* set if player is beyond point of no return */
11 extern bool Marsh; /* set if player is in dead marshes */
12 extern bool Throne; /* set if player is on throne */
13 extern bool Changed; /* set if important player stats have changed */
14 extern bool Wizard; /* set if player is the 'wizard' of the game */
15 extern bool Timeout; /* set if short timeout waiting for input */
16 extern bool Windows; /* set if we are set up for curses stuff */
17 extern bool Luckout; /* set if we have tried to luck out in fight */
18 extern bool Foestrikes; /* set if foe gets a chance to hit in battleplayer()*/
19 extern bool Echo; /* set if echo input to terminal */
20
21 extern int Users; /* number of users currently playing */
22 extern int Whichmonster; /* which monster we are fighting */
23 extern int Lines; /* line on screen counter for fight routines */
24
25 extern jmp_buf Fightenv; /* used to jump into fight routine */
26 extern jmp_buf Timeoenv; /* used for timing out waiting for input */
27
28 extern long Fileloc; /* location in file of player statistics */
29
30 extern char *Login; /* pointer to login of current player */
31 extern char *Enemyname; /* pointer name of monster/player we are battling*/
32
33 extern struct player Player; /* stats for player */
34 extern struct player Other; /* stats for another player */
35
36 extern struct monster Curmonster;/* stats for current monster */
37
38 extern struct energyvoid Enrgyvoid;/* energy void buffer */
39
40 extern struct charstats Stattable[];/* used for rolling and changing player stats*/
41
42 extern struct charstats *Statptr;/* pointer into Stattable[] */
43
44 extern struct menuitem Menu[]; /* menu of items for purchase */
45
46 extern FILE *Playersfp; /* pointer to open player file */
47 extern FILE *Monstfp; /* pointer to open monster file */
48 extern FILE *Messagefp; /* pointer to open message file */
49 extern FILE *Energyvoidfp; /* pointer to open energy void file */
50
51 extern char Databuf[]; /* a place to read data into */
52
53 /* some canned strings for messages */
54 extern char Illcmd[];
55 extern char Illmove[];
56 extern char Illspell[];
57 extern char Nomana[];
58 extern char Somebetter[];
59 extern char Nobetter[];
60
61 /* functions which we need to know about */
62
63 char *descrlocation __P((struct player *, bool));
64 char *descrstatus __P((struct player *));
65 char *descrtype __P((struct player *, bool));
66 void activelist __P((void));
67 void adjuststats __P((void));
68 long allocrecord __P((void));
69 long allocvoid __P((void));
70 void allstatslist __P((void));
71 void altercoordinates __P((double, double, int));
72 void awardtreasure __P((void));
73 void battleplayer __P((long));
74 void callmonster __P((int));
75 void cancelmonster __P((void));
76 void catchalarm __P((int));
77 void changestats __P((bool));
78 void checkbattle __P((void));
79 void checktampered __P((void));
80 void cleanup __P((int));
81 void collecttaxes __P((double, double));
82 void cursedtreasure __P((void));
83 void death __P((char *));
84 void displaystats __P((void));
85 double distance __P((double, double, double, double));
86 void dotampered __P((void));
87 double drandom __P((void));
88 void encounter __P((int));
89 void enterscore __P((void));
90 void error __P((char *));
91 double explevel __P((double));
92 long findname __P((char *, struct player *));
93 void freerecord __P((struct player *, long));
94 void genchar __P((int));
95 int getanswer __P((char *, bool));
96 void getstring __P((char *, int));
97 void hitmonster __P((double));
98 void ill_sig __P((int));
99 double infloat __P((void));
100 void initialstate __P((void));
101 void initplayer __P((struct player *));
102 int inputoption __P((void));
103 void interrupt __P((void));
104 void leavegame __P((void));
105 void monsthits __P((void));
106 void monstlist __P((void));
107 void more __P((int));
108 void movelevel __P((void));
109 void myturn __P((void));
110 void neatstuff __P((void));
111 int pickmonster __P((void));
112 void playerhits __P((void));
113 void playinit __P((void));
114 void procmain __P((void));
115 void purgeoldplayers __P((void));
116 void readmessage __P((void));
117 void readrecord __P((struct player *, long));
118 long recallplayer __P((void));
119 long recallplayer __P((void));
120 long rollnewplayer __P((void));
121 void scorelist __P((void));
122 void scramblestats __P((void));
123 void tampered __P((int, double, double));
124 void throneroom __P((void));
125 void throwspell __P((void));
126 void titlelist __P((void));
127 void tradingpost __P((void));
128 void truncstring __P((char *));
129 void userlist __P((bool));
130 void writerecord __P((struct player *, long));
131 void writevoid __P((struct energyvoid *, long));