|
|
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: #ifdef OK_TO_PLAY ! 23: extern int Okcount; /* counter for checking ok_to_play */ ! 24: #endif ! 25: ! 26: extern jmp_buf Fightenv; /* used to jump into fight routine */ ! 27: extern jmp_buf Timeoenv; /* used for timing out waiting for input */ ! 28: ! 29: extern long Fileloc; /* location in file of player statistics */ ! 30: ! 31: extern char *Login; /* pointer to login of current player */ ! 32: extern char *Enemyname; /* pointer name of monster/player we are battling*/ ! 33: ! 34: extern struct player Player; /* stats for player */ ! 35: extern struct player Other; /* stats for another player */ ! 36: ! 37: extern struct monster Curmonster;/* stats for current monster */ ! 38: ! 39: extern struct energyvoid Enrgyvoid;/* energy void buffer */ ! 40: ! 41: extern struct charstats Stattable[];/* used for rolling and changing player stats*/ ! 42: ! 43: extern struct charstats *Statptr;/* pointer into Stattable[] */ ! 44: ! 45: extern struct menuitem Menu[]; /* menu of items for purchase */ ! 46: ! 47: extern FILE *Playersfp; /* pointer to open player file */ ! 48: extern FILE *Monstfp; /* pointer to open monster file */ ! 49: extern FILE *Messagefp; /* pointer to open message file */ ! 50: extern FILE *Energyvoidfp; /* pointer to open energy void file */ ! 51: ! 52: extern char Databuf[]; /* a place to read data into */ ! 53: ! 54: /* edit these path definitions to let files reside elsewhere */ ! 55: extern char Monstfile[]; /* monster database */ ! 56: extern char Peoplefile[]; /* player database */ ! 57: extern char Gameprog[]; /* game binary */ ! 58: extern char Messfile[]; /* player to player messages */ ! 59: extern char Lastdead[]; /* data on last player killed */ ! 60: extern char Helpfile[]; /* manual pages */ ! 61: extern char Motdfile[]; /* message from 'wizard' */ ! 62: extern char Goldfile[]; /* gold collected in taxes */ ! 63: extern char Voidfile[]; /* energy void database */ ! 64: extern char Scorefile[]; /* hi score database */ ! 65: #ifdef ENEMY ! 66: extern char Enemyfile[]; /* restricted account database */ ! 67: #endif ! 68: ! 69: /* some canned strings for messages */ ! 70: extern char Illcmd[]; ! 71: extern char Illmove[]; ! 72: extern char Illspell[]; ! 73: extern char Nomana[]; ! 74: extern char Somebetter[]; ! 75: extern char Nobetter[]; ! 76: ! 77: /* library functions and system calls */ ! 78: extern long time(); ! 79: extern char *getlogin(); ! 80: extern char *getpass(); ! 81: extern char *strchr(); ! 82: extern char *strcat(); ! 83: extern char *strcpy(); ! 84: extern char *strncpy(); ! 85: extern char *getenv(); ! 86: struct passwd *getpwuid(); ! 87: extern char *fgets(); ! 88: ! 89: /* functions which we need to know about */ ! 90: extern int interrupt(); ! 91: extern int ill_sig(); ! 92: extern int catchalarm(); ! 93: extern long recallplayer(); ! 94: extern long findname(); ! 95: extern long allocrecord(); ! 96: extern long rollnewplayer(); ! 97: extern long allocvoid(); ! 98: extern double drandom(); ! 99: extern double distance(); ! 100: extern double infloat(); ! 101: extern double explevel(); ! 102: extern char *descrlocation(); ! 103: extern char *descrtype(); ! 104: extern char *descrstatus();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.