phantglobs.h revision 1.2
11.2Scgd/*	$NetBSD: phantglobs.h,v 1.2 1995/03/24 03:59:38 cgd Exp $	*/
21.2Scgd
31.1Sjtc/*
41.1Sjtc * phantglobs.h - global declarations for Phantasia
51.1Sjtc */
61.1Sjtc
71.1Sjtcextern	double	Circle;		/* which circle player is in			*/
81.1Sjtcextern	double	Shield;		/* force field thrown up in monster battle	*/
91.1Sjtc
101.1Sjtcextern	bool	Beyond;		/* set if player is beyond point of no return	*/
111.1Sjtcextern	bool	Marsh;		/* set if player is in dead marshes		*/
121.1Sjtcextern	bool	Throne;		/* set if player is on throne			*/
131.1Sjtcextern	bool	Changed;	/* set if important player stats have changed	*/
141.1Sjtcextern	bool	Wizard;		/* set if player is the 'wizard' of the game	*/
151.1Sjtcextern	bool	Timeout;	/* set if short timeout waiting for input	*/
161.1Sjtcextern	bool	Windows;	/* set if we are set up for curses stuff	*/
171.1Sjtcextern	bool	Luckout;	/* set if we have tried to luck out in fight	*/
181.1Sjtcextern	bool	Foestrikes;	/* set if foe gets a chance to hit in battleplayer()*/
191.1Sjtcextern	bool	Echo;		/* set if echo input to terminal		*/
201.1Sjtc
211.1Sjtcextern	int	Users;		/* number of users currently playing		*/
221.1Sjtcextern	int	Whichmonster;	/* which monster we are fighting		*/
231.1Sjtcextern	int	Lines;		/* line on screen counter for fight routines	*/
241.1Sjtc
251.1Sjtcextern	jmp_buf Fightenv;	/* used to jump into fight routine		*/
261.1Sjtcextern	jmp_buf Timeoenv;	/* used for timing out waiting for input	*/
271.1Sjtc
281.1Sjtcextern	long	Fileloc;	/* location in file of player statistics	*/
291.1Sjtc
301.1Sjtcextern	char	*Login;		/* pointer to login of current player		*/
311.1Sjtcextern	char	*Enemyname;	/* pointer name of monster/player we are battling*/
321.1Sjtc
331.1Sjtcextern	struct player	Player;	/* stats for player				*/
341.1Sjtcextern	struct player	Other;	/* stats for another player			*/
351.1Sjtc
361.1Sjtcextern	struct monster	Curmonster;/* stats for current monster			*/
371.1Sjtc
381.1Sjtcextern	struct energyvoid Enrgyvoid;/* energy void buffer			*/
391.1Sjtc
401.1Sjtcextern	struct charstats Stattable[];/* used for rolling and changing player stats*/
411.1Sjtc
421.1Sjtcextern	struct charstats *Statptr;/* pointer into Stattable[]			*/
431.1Sjtc
441.1Sjtcextern	struct menuitem	Menu[];	/* menu of items for purchase			*/
451.1Sjtc
461.1Sjtcextern	FILE	*Playersfp;	/* pointer to open player file			*/
471.1Sjtcextern	FILE	*Monstfp;	/* pointer to open monster file			*/
481.1Sjtcextern	FILE	*Messagefp;	/* pointer to open message file			*/
491.1Sjtcextern	FILE	*Energyvoidfp;	/* pointer to open energy void file		*/
501.1Sjtc
511.1Sjtcextern	char	Databuf[];	/* a place to read data into			*/
521.1Sjtc
531.1Sjtc/* some canned strings for messages */
541.1Sjtcextern	char	Illcmd[];
551.1Sjtcextern	char	Illmove[];
561.1Sjtcextern	char	Illspell[];
571.1Sjtcextern	char	Nomana[];
581.1Sjtcextern	char	Somebetter[];
591.1Sjtcextern	char	Nobetter[];
601.1Sjtc
611.1Sjtc/* library functions and system calls */
621.1Sjtcextern	long	time();
631.1Sjtcextern	char	*getlogin();
641.1Sjtcextern	char	*getpass();
651.1Sjtcextern	char	*strchr();
661.1Sjtcextern	char	*strcat();
671.1Sjtcextern	char	*strcpy();
681.1Sjtcextern	char	*strncpy();
691.1Sjtcextern	char	*getenv();
701.1Sjtcstruct	passwd	*getpwuid();
711.1Sjtcextern	char	*fgets();
721.1Sjtc
731.1Sjtc/* functions which we need to know about */
741.1Sjtcextern	int	interrupt();
751.1Sjtcextern	int	ill_sig();
761.1Sjtcextern	void	catchalarm();
771.1Sjtcextern	long	recallplayer();
781.1Sjtcextern	long	findname();
791.1Sjtcextern	long	allocrecord();
801.1Sjtcextern	long	rollnewplayer();
811.1Sjtcextern	long	allocvoid();
821.1Sjtcextern	double	drandom();
831.1Sjtcextern	double	distance();
841.1Sjtcextern	double	infloat();
851.1Sjtcextern	double	explevel();
861.1Sjtcextern	char	*descrlocation();
871.1Sjtcextern	char	*descrtype();
881.1Sjtcextern	char	*descrstatus();
89