|
|
1.1 ! root 1: /* ! 2: * phantglobs.h - global declarations for Phantasia ! 3: */ ! 4: ! 5: extern double Circle; /* which circle player is in */ ! 6: extern double Shield; /* force field thrown up in monster battle */ ! 7: ! 8: extern bool Beyond; /* set if player is beyond point of no return */ ! 9: extern bool Marsh; /* set if player is in dead marshes */ ! 10: extern bool Throne; /* set if player is on throne */ ! 11: extern bool Changed; /* set if important player stats have changed */ ! 12: extern bool Wizard; /* set if player is the 'wizard' of the game */ ! 13: extern bool Timeout; /* set if short timeout waiting for input */ ! 14: extern bool Windows; /* set if we are set up for curses stuff */ ! 15: extern bool Luckout; /* set if we have tried to luck out in fight */ ! 16: extern bool Foestrikes; /* set if foe gets a chance to hit in battleplayer()*/ ! 17: extern bool Echo; /* set if echo input to terminal */ ! 18: ! 19: extern int Users; /* number of users currently playing */ ! 20: extern int Whichmonster; /* which monster we are fighting */ ! 21: extern int Lines; /* line on screen counter for fight routines */ ! 22: ! 23: extern jmp_buf Fightenv; /* used to jump into fight routine */ ! 24: extern jmp_buf Timeoenv; /* used for timing out waiting for input */ ! 25: ! 26: extern long Fileloc; /* location in file of player statistics */ ! 27: ! 28: extern char *Login; /* pointer to login of current player */ ! 29: extern char *Enemyname; /* pointer name of monster/player we are battling*/ ! 30: ! 31: extern struct player Player; /* stats for player */ ! 32: extern struct player Other; /* stats for another player */ ! 33: ! 34: extern struct monster Curmonster;/* stats for current monster */ ! 35: ! 36: extern struct energyvoid Enrgyvoid;/* energy void buffer */ ! 37: ! 38: extern struct charstats Stattable[];/* used for rolling and changing player stats*/ ! 39: ! 40: extern struct charstats *Statptr;/* pointer into Stattable[] */ ! 41: ! 42: extern struct menuitem Menu[]; /* menu of items for purchase */ ! 43: ! 44: extern FILE *Playersfp; /* pointer to open player file */ ! 45: extern FILE *Monstfp; /* pointer to open monster file */ ! 46: extern FILE *Messagefp; /* pointer to open message file */ ! 47: extern FILE *Energyvoidfp; /* pointer to open energy void file */ ! 48: ! 49: extern char Databuf[]; /* a place to read data into */ ! 50: ! 51: /* some canned strings for messages */ ! 52: extern char Illcmd[]; ! 53: extern char Illmove[]; ! 54: extern char Illspell[]; ! 55: extern char Nomana[]; ! 56: extern char Somebetter[]; ! 57: extern char Nobetter[]; ! 58: ! 59: /* library functions and system calls */ ! 60: extern long time(); ! 61: extern char *getlogin(); ! 62: extern char *getpass(); ! 63: extern char *strchr(); ! 64: extern char *strcat(); ! 65: extern char *strcpy(); ! 66: extern char *strncpy(); ! 67: extern char *getenv(); ! 68: struct passwd *getpwuid(); ! 69: extern char *fgets(); ! 70: ! 71: /* functions which we need to know about */ ! 72: extern int interrupt(); ! 73: extern int ill_sig(); ! 74: extern int catchalarm(); ! 75: extern long recallplayer(); ! 76: extern long findname(); ! 77: extern long allocrecord(); ! 78: extern long rollnewplayer(); ! 79: extern long allocvoid(); ! 80: extern double drandom(); ! 81: extern double distance(); ! 82: extern double infloat(); ! 83: extern double explevel(); ! 84: extern char *descrlocation(); ! 85: extern char *descrtype(); ! 86: extern char *descrstatus();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.