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