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