/*
 * phantglobs.h - global declarations for Phantasia
 *
 * $DragonFly: src/games/phantasia/phantglobs.h,v 1.2 2005/05/31 00:06:26 swildner Exp $
 */

extern	double	Circle;		/* which circle player is in			*/
extern	double	Shield;		/* force field thrown up in monster battle	*/

extern	bool	Beyond;		/* set if player is beyond point of no return	*/
extern	bool	Marsh;		/* set if player is in dead marshes		*/
extern	bool	Throne;		/* set if player is on throne			*/
extern	bool	Changed;	/* set if important player stats have changed	*/
extern	bool	Wizard;		/* set if player is the 'wizard' of the game	*/
extern	bool	Timeout;	/* set if short timeout waiting for input	*/
extern	bool	Windows;	/* set if we are set up for curses stuff	*/
extern	bool	Luckout;	/* set if we have tried to luck out in fight	*/
extern	bool	Foestrikes;	/* set if foe gets a chance to hit in battleplayer()*/
extern	bool	Echo;		/* set if echo input to terminal		*/

extern	int	Users;		/* number of users currently playing		*/
extern	int	Whichmonster;	/* which monster we are fighting		*/
extern	int	Lines;		/* line on screen counter for fight routines	*/

extern	jmp_buf Fightenv;	/* used to jump into fight routine		*/
extern	jmp_buf Timeoenv;	/* used for timing out waiting for input	*/

extern	long	Fileloc;	/* location in file of player statistics	*/

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 monster	Curmonster;/* stats for current monster			*/

extern	struct energyvoid Enrgyvoid;/* energy void buffer			*/

extern	struct charstats Stattable[];/* used for rolling and changing player stats*/

extern	struct charstats *Statptr;/* pointer into Stattable[]			*/

extern	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	FILE	*Messagefp;	/* pointer to open message file			*/
extern	FILE	*Energyvoidfp;	/* pointer to open energy void file		*/

extern	char	Databuf[];	/* a place to read data into			*/

/* some canned strings for messages */
extern	const char	Illcmd[];
extern	const char	Illmove[];
extern	const char	Illspell[];
extern	const char	Nomana[];
extern	const char	Somebetter[];
extern	const char	Nobetter[];
