xref: /openbsd/games/phantasia/phantglobs.h (revision df930be7)
1 /*	$NetBSD: phantglobs.h,v 1.3 1995/04/24 12:24:39 cgd 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 /* library functions and system calls */
62 /* extern	long	time(); */
63 extern	char	*getlogin();
64 extern	char	*getpass();
65 extern	char	*strchr();
66 extern	char	*strcat();
67 extern	char	*strcpy();
68 extern	char	*strncpy();
69 extern	char	*getenv();
70 struct	passwd	*getpwuid();
71 extern	char	*fgets();
72 
73 /* functions which we need to know about */
74 extern	int	interrupt();
75 extern	int	ill_sig();
76 extern	void	catchalarm();
77 extern	long	recallplayer();
78 extern	long	findname();
79 extern	long	allocrecord();
80 extern	long	rollnewplayer();
81 extern	long	allocvoid();
82 extern	double	drandom();
83 extern	double	distance();
84 extern	double	infloat();
85 extern	double	explevel();
86 extern	char	*descrlocation();
87 extern	char	*descrtype();
88 extern	char	*descrstatus();
89