123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600 |
- #ifdef __STDC__
- /* module: bill.c */
- int letter1(void);
- int letter2(void);
- int letter3(void);
- int letter4(void);
- int letter5(void);
- int letter6(void);
- int mailbill(void);
- /* module: config.c */
- /* module: data.c */
- /* module: diag.c */
- int diag(void);
- int diagdrawscreen(void);
- /* module: display.c */
- int bottomdo(void);
- int bottomgold(void);
- int bot_spellx(void);
- int bot_linex(void);
- int bot_hpx(void);
- int botside(void);
- int bothp(void);
- int draws(int, int, int, int);
- int drawscreen(void);
- int showcell(int, int);
- int show1cell(int, int);
- int showplayer(void);
- int moveplayer(int);
- int seemagic(int);
- int seepage(void);
- /* module: fortune.c */
- char *fortune(char *);
- /* module: help.c */
- int help(void);
- int welcome(void);
- int retcont(void);
- int openhelp(void);
- /* module: io.c */
- int getcharacter(void);
- int newgame(void);
- /*VARARGS*/
- int lprintf();
- int lprint(long);
- int lwrite(char *, int);
- long lgetc1(void);
- long lrint(void);
- int lrfill(char *, int);
- char *lgetw(void);
- char *lgetl(void);
- int lcreat(char *);
- int lopen(char *);
- int lappend(char *);
- int lrclose(void);
- int lwclose(void);
- int lprcat(char *);
- int init_term(void);
- int cl_up(int, int);
- int cl_dn(int, int);
- int standout(char *);
- int set_score_output(void);
- int lflush(void);
- int putcharacter(int);
- int flush_buf(void);
- int tmcapcnv(char *, char *);
- char *getword(char *);
- /* module: main.c */
- int main(int, char **);
- int parse(void);
- int parse2(void);
- /* module: monster.c */
- int createmonster(int);
- int cgood(int, int, int, int);
- int createitem(int, int, int, int);
- int cast(void);
- int speldamage(int);
- int loseint(void);
- int isconfuse(void);
- int nospell(int, int);
- int fullhit(int);
- int direct(int, int, char *, int);
- int godirect(int, int, char *, int, int);
- int ifblind(int, int);
- int tdirect(int);
- int makewall(int);
- int omnidirect(int, int, char *);
- int dirsub(int *, int *);
- int verifyxy(int *, int *);
- int dirpoly(int);
- int hitmonster(int, int);
- int hitm(int, int, int);
- int hitplayer(int, int);
- int dropsomething(int, int, int);
- int dropgold(int);
- int something(int, int, int);
- int newobject(int, int *);
- int spattack(int, int, int);
- int checkloss(int);
- int annihilate(void);
- int genmonst(void);
- int makemonst(int);
- int randmonst(void);
- /* module: moreobj.c */
- int oaltar(void);
- int ohear(void);
- int othrone(int);
- int odeadthrone(void);
- int ochest(void);
- int ofountain(void);
- int fntchange(int);
- int fch(int, long *);
- /* module: movem.c */
- int movemonst(void);
- int movemt(int, int);
- int mmove(int, int, int, int);
- int teleportmonst(int, int, int);
- /* module: nap.c */
- int nap(int);
- int napms(int);
- /* module: object.c */
- int lookforobject(void);
- int finditem(int);
- int ostairs(int);
- int oteleport(int);
- int opotion(int);
- int quaffpotion(int);
- int oscroll(int);
- int adjusttime(long);
- int read_scroll(int);
- void removecurse(void);
- int opit(void);
- int obottomless(void);
- int oelevator(int);
- int ostatue(void);
- int omirror(void);
- int obook(void);
- int readbook(int);
- int ocookie(void);
- int ogold(int);
- int ohome(void);
- int iopts(void);
- int ignore(void);
- int closedoor(void);
- /* module: regen.c */
- int regen(void);
- /* module: savelev.c */
- int savelevel(void);
- int getlevel();
- int savegame(char *);
- int restoregame(char *);
- int greedy(void);
- int fsorry(void);
- int fcheat(void);
- int init_cells(void);
- int bwrite(int, char *, long);
- int bread(int, char *, long);
- unsigned int sum(unsigned char *, int);
- /* module: scores.c */
- int readboard(void);
- int writeboard(void);
- int makeboard(void);
- int hashewon(void);
- long paytaxes(long);
- int winshou(void);
- int shou(int);
- int showscores(void);
- int showallscores(void);
- int sortboard(void);
- int newscore(long, char *, int, int);
- int new1sub(long, int, char *, long);
- int new2sub(long, int, char *, int);
- int died(int);
- int diedsub(int);
- int showscore3(int);
- int showscore1(int, char **);
- /* module: show.c */
- int showstr(void);
- int qshowstr(void);
- int t_setup(int);
- int t_endup(int);
- int showwear(void);
- int showwield(void);
- int showread(void);
- int showeat(void);
- int showquaff(void);
- int show1(int, char **, int *);
- int show3(int);
- /* module: signal.c */
- int s2choose(void);
- SIGTYPE cntlc(int);
- SIGTYPE sgam(int);
- SIGTYPE tstop(int);
- void sigsetup(void);
- void sigsave(void);
- void sigreset(void);
- SIGTYPE sigpanic(int);
- /* module: sphere.c */
- int newsphere(int, int, int, int);
- int rmsphere(int, int);
- int sphboom(int, int);
- int movsphere(void);
- /* module: store.c */
- int dnd_2hed(void);
- int dnd_hed(void);
- int dndstore(void);
- int handsfull(void);
- int outofstock(void);
- int nogold(void);
- int dnditem(int);
- int sch_hed(void);
- int oschool(void);
- int obank(void);
- int obank2(void);
- int banktitle(char *);
- int ointerest(void);
- int obanksub(void);
- int appraise(int, int);
- int otradhead(void);
- int otradepost(void);
- int cnsitm(void);
- int olrs(void);
- int nomore(void);
- int nocash(void);
- int pad_hd(void);
- int opad(void);
- int snag(int);
- int pick_char(int);
- /* module: tok.c */
- int yylex(void);
- int flushall(void);
- int sethard(int);
- int readopts(void);
- /* module: tty.c */
- int setctty(void);
- int gettty(void);
- int settty(void);
- int setuptty(void);
- int scbr(void);
- int sncbr(void);
- int setupvt100(void);
- int clearvt100(void);
- #else
- /* module: bill.c */
- int letter1();
- int letter2();
- int letter3();
- int letter4();
- int letter5();
- int letter6();
- int mailbill();
- /* module: config.c */
- /* module: data.c */
- /* module: diag.c */
- int diag();
- int diagdrawscreen();
- /* module: display.c */
- int bottomdo();
- int bottomgold();
- int bot_spellx();
- int bot_linex();
- int bot_hpx();
- int botside();
- int bothp();
- int draws();
- int drawscreen();
- int showcell();
- int show1cell();
- int showplayer();
- int moveplayer();
- int seemagic();
- int seepage();
- /* module: fortune.c */
- char *fortune();
- /* module: help.c */
- int help();
- int welcome();
- int retcont();
- int openhelp();
- /* module: io.c */
- int getcharacter();
- int newgame();
- /*VARARGS*/
- int lprint();
- int lwrite();
- long lgetc1();
- long lrint();
- int lrfill();
- char *lgetw();
- char *lgetl();
- int lcreat();
- int lopen();
- int lappend();
- int lrclose();
- int lwclose();
- int lprcat();
- int init_term();
- int cl_up();
- int cl_dn();
- int standout();
- int set_score_output();
- int lflush();
- int putcharacter();
- int flush_buf();
- int tmcapcnv();
- char *getword();
- /* module: main.c */
- int main();
- int parse();
- int parse2();
- /* module: monster.c */
- int createmonster();
- int cgood();
- int createitem();
- int cast();
- int speldamage();
- int loseint();
- int isconfuse();
- int nospell();
- int fullhit();
- int direct();
- int godirect();
- int ifblind();
- int tdirect();
- int makewall();
- int omnidirect();
- int dirsub();
- int verifyxy();
- int dirpoly();
- int hitmonster();
- int hitm();
- int hitplayer();
- int dropsomething();
- int dropgold();
- int something();
- int newobject();
- int spattack();
- int checkloss();
- int annihilate();
- int genmonst();
- int makemonst();
- int randmonst();
- /* module: moreobj.c */
- int oaltar();
- int ohear();
- int othrone();
- int odeadthrone();
- int ochest();
- int ofountain();
- int fntchange();
- int fch();
- /* module: movem.c */
- int movemonst();
- int movemt();
- int mmove();
- int teleportmonst();
- /* module: nap.c */
- int nap();
- int napms();
- /* module: object.c */
- int lookforobject();
- int finditem();
- int ostairs();
- int oteleport();
- int opotion();
- int quaffpotion();
- int oscroll();
- int adjusttime();
- int read_scroll();
- void removecurse();
- int opit();
- int obottomless();
- int oelevator();
- int ostatue();
- int omirror();
- int obook();
- int readbook();
- int ocookie();
- int ogold();
- int ohome();
- int iopts();
- int ignore();
- int closedoor();
- /* module: regen.c */
- int regen();
- /* module: savelev.c */
- int savelevel();
- int getlevel();
- int savegame();
- int restoregame();
- int greedy();
- int fsorry();
- int fcheat();
- int init_cells();
- int bwrite();
- int bread();
- unsigned int sum();
- /* module: scores.c */
- int readboard();
- int writeboard();
- int makeboard();
- int hashewon();
- long paytaxes();
- int winshou();
- int shou();
- int showscores();
- int showallscores();
- int sortboard();
- int newscore();
- int new1sub();
- int new2sub();
- int died();
- int diedsub();
- int showscore3();
- int showscore1();
- /* module: show.c */
- int showstr();
- int qshowstr();
- int t_setup();
- int t_endup();
- int showwear();
- int showwield();
- int showread();
- int showeat();
- int showquaff();
- int show1();
- int show3();
- /* module: signal.c */
- /* module: sphere.c */
- int newsphere();
- int rmsphere();
- int sphboom();
- int movsphere();
- /* module: store.c */
- int dnd_2hed();
- int dnd_hed();
- int dndstore();
- int handsfull();
- int outofstock();
- int nogold();
- int dnditem();
- int sch_hed();
- int oschool();
- int obank();
- int obank2();
- int banktitle();
- int ointerest();
- int obanksub();
- int appraise();
- int otradhead();
- int otradepost();
- int cnsitm();
- int olrs();
- int nomore();
- int nocash();
- int pad_hd();
- int opad();
- int snag();
- /* module: tok.c */
- int yylex();
- int flushall();
- int sethard();
- int readopts();
- /* module: tty.c */
- int setctty();
- int gettty();
- int settty();
- int setuptty();
- int intron();
- int introff();
- int scbr();
- int sncbr();
- int setupvt100();
- int clearvt100();
- #endif /* __STD__ */
- /************** extern decls for all data items **********/
- extern char *tempfilename, *libdir;
- extern char bot1f, bot2f, bot3f; /* in display.c */
- extern char ckpfile[], monstnamelist[];
- extern char larnlevels[], lastmonst[];
- extern char savefilename[], scorefile[], beenhere[];
- extern char objnamelist[], optsfile[], *potionname[], stealth[MAXX][MAXY];
- extern char *scrollname[], *spelcode[], *speldescript[];
- extern int scrollknown[], potionknown[];
- extern char *class[], course[], diagfile[], fortfile[], helpfile[];
- extern char *inbuffer, drug[], know[MAXX][MAXY], item[MAXX][MAXY];
- extern char *levelname[], loginname[], logname[], *lpbuf, *lpend;
- /* extern char *lpnt, *password, mitem[MAXX][MAXY], moved[MAXX][MAXY]; */
- extern char *lpnt, *password, moved[MAXX][MAXY];
- extern char *objectname[], *spelname[], *spelmes[], char_class[], iven[];
- extern char nosignal, nobeep, oldx, oldy, playerx, playery, dropflag;
- extern char restorflag, nomove, srcount, char_picked;
- extern char nowelcome, level, cheat, enable_scroll;
- extern char nch[], ndgg[], ckpflag, monstlevel[];
- extern char nlpts[], nplt[], nsw[], mail, boldon, splev[];
- extern char potprob[], predostuff, scprob[], spelknow[], do_fork, sex;
- extern char spelweird[MAXMONST + 8][SPNUM], wizard;
- extern char diroffx[], diroffy[], hitflag, hit2flag, hit3flag;
- extern char rmst, lasthx, lasthy, lastpx, lastpy;
- extern char ramboflag, compress;
- extern short hitp[MAXX][MAXY], ivenarg[], screen[MAXX][MAXY];
- extern short iarg[MAXX][MAXY], lastnum; /* must be short for gold piles */
- extern int yrepcount, userid;
- extern int ipoint, iepoint;
- extern time_t initialtime;
- extern long outstanding_taxes, skill[], gtime, c[], cbak[];
- extern long lasttime;
|