134610Sbostic /*
234610Sbostic  * phantglobs.h - global declarations for Phantasia
334610Sbostic  */
434610Sbostic 
534610Sbostic extern	double	Circle;		/* which circle player is in			*/
634610Sbostic extern	double	Shield;		/* force field thrown up in monster battle	*/
734610Sbostic 
834610Sbostic extern	bool	Beyond;		/* set if player is beyond point of no return	*/
934610Sbostic extern	bool	Marsh;		/* set if player is in dead marshes		*/
1034610Sbostic extern	bool	Throne;		/* set if player is on throne			*/
1134610Sbostic extern	bool	Changed;	/* set if important player stats have changed	*/
1234610Sbostic extern	bool	Wizard;		/* set if player is the 'wizard' of the game	*/
1334610Sbostic extern	bool	Timeout;	/* set if short timeout waiting for input	*/
1434610Sbostic extern	bool	Windows;	/* set if we are set up for curses stuff	*/
1534610Sbostic extern	bool	Luckout;	/* set if we have tried to luck out in fight	*/
1634610Sbostic extern	bool	Foestrikes;	/* set if foe gets a chance to hit in battleplayer()*/
1734610Sbostic extern	bool	Echo;		/* set if echo input to terminal		*/
1834610Sbostic 
1934610Sbostic extern	int	Users;		/* number of users currently playing		*/
2034610Sbostic extern	int	Whichmonster;	/* which monster we are fighting		*/
2134610Sbostic extern	int	Lines;		/* line on screen counter for fight routines	*/
2234610Sbostic 
2334610Sbostic extern	jmp_buf Fightenv;	/* used to jump into fight routine		*/
2434610Sbostic extern	jmp_buf Timeoenv;	/* used for timing out waiting for input	*/
2534610Sbostic 
2634610Sbostic extern	long	Fileloc;	/* location in file of player statistics	*/
2734610Sbostic 
2834610Sbostic extern	char	*Login;		/* pointer to login of current player		*/
2934610Sbostic extern	char	*Enemyname;	/* pointer name of monster/player we are battling*/
3034610Sbostic 
3134610Sbostic extern	struct player	Player;	/* stats for player				*/
3234610Sbostic extern	struct player	Other;	/* stats for another player			*/
3334610Sbostic 
3434610Sbostic extern	struct monster	Curmonster;/* stats for current monster			*/
3534610Sbostic 
3634610Sbostic extern	struct energyvoid Enrgyvoid;/* energy void buffer			*/
3734610Sbostic 
3834610Sbostic extern	struct charstats Stattable[];/* used for rolling and changing player stats*/
3934610Sbostic 
4034610Sbostic extern	struct charstats *Statptr;/* pointer into Stattable[]			*/
4134610Sbostic 
4234610Sbostic extern	struct menuitem	Menu[];	/* menu of items for purchase			*/
4334610Sbostic 
4434610Sbostic extern	FILE	*Playersfp;	/* pointer to open player file			*/
4534610Sbostic extern	FILE	*Monstfp;	/* pointer to open monster file			*/
4634610Sbostic extern	FILE	*Messagefp;	/* pointer to open message file			*/
4734610Sbostic extern	FILE	*Energyvoidfp;	/* pointer to open energy void file		*/
4834610Sbostic 
4934610Sbostic extern	char	Databuf[];	/* a place to read data into			*/
5034610Sbostic 
5134610Sbostic /* some canned strings for messages */
5234610Sbostic extern	char	Illcmd[];
5334610Sbostic extern	char	Illmove[];
5434610Sbostic extern	char	Illspell[];
5534610Sbostic extern	char	Nomana[];
5634610Sbostic extern	char	Somebetter[];
5734610Sbostic extern	char	Nobetter[];
5834610Sbostic 
5934610Sbostic /* library functions and system calls */
6034610Sbostic extern	long	time();
6134610Sbostic extern	char	*getlogin();
6234610Sbostic extern	char	*getpass();
6334610Sbostic extern	char	*strchr();
6434610Sbostic extern	char	*strcat();
6534610Sbostic extern	char	*strcpy();
6634610Sbostic extern	char	*strncpy();
6734610Sbostic extern	char	*getenv();
6834610Sbostic struct	passwd	*getpwuid();
6934610Sbostic extern	char	*fgets();
7034610Sbostic 
7134610Sbostic /* functions which we need to know about */
7234610Sbostic extern	int	interrupt();
7334610Sbostic extern	int	ill_sig();
74*56571Sbostic extern	void	catchalarm();
7534610Sbostic extern	long	recallplayer();
7634610Sbostic extern	long	findname();
7734610Sbostic extern	long	allocrecord();
7834610Sbostic extern	long	rollnewplayer();
7934610Sbostic extern	long	allocvoid();
8034610Sbostic extern	double	drandom();
8134610Sbostic extern	double	distance();
8234610Sbostic extern	double	infloat();
8334610Sbostic extern	double	explevel();
8434610Sbostic extern	char	*descrlocation();
8534610Sbostic extern	char	*descrtype();
8634610Sbostic extern	char	*descrstatus();
87