phantglobs.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /* $NetBSD: phantglobs.h,v 1.9 2003/05/08 13:03:49 wiz Exp $ */
  2. /*
  3. * phantglobs.h - global declarations for Phantasia
  4. */
  5. extern double Circle; /* which circle player is in */
  6. extern double Shield; /* force field thrown up in monster battle */
  7. extern bool Beyond; /* set if player is beyond point of no return */
  8. extern bool Marsh; /* set if player is in dead marshes */
  9. extern bool Throne; /* set if player is on throne */
  10. extern bool Changed; /* set if important player stats have changed */
  11. extern bool Wizard; /* set if player is the 'wizard' of the game */
  12. extern bool Timeout; /* set if short timeout waiting for input */
  13. extern bool Windows; /* set if we are set up for curses stuff */
  14. extern bool Luckout; /* set if we have tried to luck out in fight */
  15. extern bool Foestrikes; /* set if foe gets a chance to hit in battleplayer()*/
  16. extern bool Echo; /* set if echo input to terminal */
  17. extern int Users; /* number of users currently playing */
  18. extern int Whichmonster; /* which monster we are fighting */
  19. extern int Lines; /* line on screen counter for fight routines */
  20. extern jmp_buf Fightenv; /* used to jump into fight routine */
  21. extern jmp_buf Timeoenv; /* used for timing out waiting for input */
  22. extern long Fileloc; /* location in file of player statistics */
  23. extern const char *Login; /* pointer to login of current player */
  24. extern const char *Enemyname; /* pointer name of monster/player we are battling*/
  25. extern struct player Player; /* stats for player */
  26. extern struct player Other; /* stats for another player */
  27. extern struct monster Curmonster;/* stats for current monster */
  28. extern struct energyvoid Enrgyvoid;/* energy void buffer */
  29. extern const struct charstats Stattable[];/* used for rolling and changing player stats*/
  30. extern const struct charstats *Statptr;/* pointer into Stattable[] */
  31. extern const struct menuitem Menu[]; /* menu of items for purchase */
  32. extern FILE *Playersfp; /* pointer to open player file */
  33. extern FILE *Monstfp; /* pointer to open monster file */
  34. extern FILE *Messagefp; /* pointer to open message file */
  35. extern FILE *Energyvoidfp; /* pointer to open energy void file */
  36. extern char Databuf[]; /* a place to read data into */
  37. /* some canned strings for messages */
  38. extern const char Illcmd[];
  39. extern const char Illmove[];
  40. extern const char Illspell[];
  41. extern const char Nomana[];
  42. extern const char Somebetter[];
  43. extern const char Nobetter[];
  44. /* functions which we need to know about */
  45. const char *descrlocation(struct player *, bool);
  46. const char *descrstatus(struct player *);
  47. const char *descrtype(struct player *, bool);
  48. void activelist(void);
  49. void adjuststats(void);
  50. long allocrecord(void);
  51. long allocvoid(void);
  52. void allstatslist(void);
  53. void altercoordinates(double, double, int);
  54. void awardtreasure(void);
  55. void battleplayer(long);
  56. void callmonster(int);
  57. void cancelmonster(void);
  58. void catchalarm(int) __attribute__((__noreturn__));
  59. void changestats(bool);
  60. void checkbattle(void);
  61. void checktampered(void);
  62. void cleanup(int);
  63. void collecttaxes(double, double);
  64. void cursedtreasure(void);
  65. void death(const char *);
  66. void displaystats(void);
  67. double distance(double, double, double, double);
  68. void dotampered(void);
  69. double drandom(void);
  70. void encounter(int);
  71. void enterscore(void);
  72. void error(const char *);
  73. double explevel(double);
  74. long findname(const char *, struct player *);
  75. void freerecord(struct player *, long);
  76. void genchar(int);
  77. int getanswer(const char *, bool);
  78. void getstring(char *, int);
  79. void hitmonster(double);
  80. void ill_sig(int);
  81. double infloat(void);
  82. void initialstate(void);
  83. void initplayer(struct player *);
  84. int inputoption(void);
  85. void interrupt(void);
  86. void leavegame(void);
  87. void monsthits(void);
  88. void monstlist(void);
  89. void more(int);
  90. void movelevel(void);
  91. void myturn(void);
  92. void neatstuff(void);
  93. int pickmonster(void);
  94. void playerhits(void);
  95. void playinit(void);
  96. void procmain(void);
  97. void purgeoldplayers(void);
  98. void readmessage(void);
  99. void readrecord(struct player *, long);
  100. long recallplayer(void);
  101. long rollnewplayer(void);
  102. void scorelist(void);
  103. void scramblestats(void);
  104. void tampered(int, double, double);
  105. void throneroom(void);
  106. void throwspell(void);
  107. void titlelist(void);
  108. void tradingpost(void);
  109. void truncstring(char *);
  110. void userlist(bool);
  111. void writerecord(struct player *, long);
  112. void writevoid(struct energyvoid *, long);