Home | History | Annotate | Line # | Download | only in larn
extern.h revision 1.1
      1  1.1  christos /*	$NetBSD: extern.h,v 1.1 1997/10/18 20:03:17 christos Exp $	*/
      2  1.1  christos 
      3  1.1  christos /*
      4  1.1  christos  * Copyright (c) 1997 Christos Zoulas.  All rights reserved.
      5  1.1  christos  *
      6  1.1  christos  * Redistribution and use in source and binary forms, with or without
      7  1.1  christos  * modification, are permitted provided that the following conditions
      8  1.1  christos  * are met:
      9  1.1  christos  * 1. Redistributions of source code must retain the above copyright
     10  1.1  christos  *    notice, this list of conditions and the following disclaimer.
     11  1.1  christos  * 2. Redistributions in binary form must reproduce the above copyright
     12  1.1  christos  *    notice, this list of conditions and the following disclaimer in the
     13  1.1  christos  *    documentation and/or other materials provided with the distribution.
     14  1.1  christos  * 3. All advertising materials mentioning features or use of this software
     15  1.1  christos  *    must display the following acknowledgement:
     16  1.1  christos  *	This product includes software developed by Christos Zoulas.
     17  1.1  christos  * 4. The name of the author may not be used to endorse or promote products
     18  1.1  christos  *    derived from this software without specific prior written permission.
     19  1.1  christos  *
     20  1.1  christos  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     21  1.1  christos  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     22  1.1  christos  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     23  1.1  christos  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     24  1.1  christos  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     25  1.1  christos  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     26  1.1  christos  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     27  1.1  christos  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     28  1.1  christos  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     29  1.1  christos  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     30  1.1  christos  */
     31  1.1  christos 
     32  1.1  christos /* bill.c */
     33  1.1  christos void mailbill __P((void));
     34  1.1  christos 
     35  1.1  christos /* config.c */
     36  1.1  christos 
     37  1.1  christos /* create.c */
     38  1.1  christos void makeplayer __P((void));
     39  1.1  christos void newcavelevel __P((int));
     40  1.1  christos void makemaze __P((int));
     41  1.1  christos void eat __P((int, int));
     42  1.1  christos int cannedlevel __P((int));
     43  1.1  christos void treasureroom __P((int));
     44  1.1  christos void troom __P((int, int, int, int, int, int));
     45  1.1  christos void makeobject __P((int));
     46  1.1  christos void fillmroom __P((int, int, int));
     47  1.1  christos void froom __P((int, int, int));
     48  1.1  christos int fillmonst __P((int));
     49  1.1  christos void sethp __P((int));
     50  1.1  christos void checkgen __P((void));
     51  1.1  christos 
     52  1.1  christos /* data.c */
     53  1.1  christos 
     54  1.1  christos /* diag.c */
     55  1.1  christos void diag __P((void));
     56  1.1  christos int dcount __P((int));
     57  1.1  christos void diagdrawscreen __P((void));
     58  1.1  christos int savegame __P((char *));
     59  1.1  christos void restoregame __P((char *));
     60  1.1  christos void greedy __P((void));
     61  1.1  christos void fsorry __P((void));
     62  1.1  christos void fcheat __P((void));
     63  1.1  christos 
     64  1.1  christos /* display.c */
     65  1.1  christos void bottomline __P((void));
     66  1.1  christos void bottomhp __P((void));
     67  1.1  christos void bottomspell __P((void));
     68  1.1  christos void bottomdo __P((void));
     69  1.1  christos void bot_linex __P((void));
     70  1.1  christos void bottomgold __P((void));
     71  1.1  christos void bot_hpx __P((void));
     72  1.1  christos void bot_spellx __P((void));
     73  1.1  christos void botside __P((void));
     74  1.1  christos void draws __P((int, int, int, int));
     75  1.1  christos void drawscreen __P((void));
     76  1.1  christos void showcell __P((int, int));
     77  1.1  christos void show1cell __P((int, int));
     78  1.1  christos void showplayer __P((void));
     79  1.1  christos int moveplayer __P((int));
     80  1.1  christos void seemagic __P((int));
     81  1.1  christos void seepage __P((void));
     82  1.1  christos 
     83  1.1  christos /* fortune.c */
     84  1.1  christos char *fortune __P((void));
     85  1.1  christos 
     86  1.1  christos /* global.c */
     87  1.1  christos void raiselevel __P((void));
     88  1.1  christos void loselevel __P((void));
     89  1.1  christos void raiseexperience __P((long));
     90  1.1  christos void loseexperience __P((long));
     91  1.1  christos void losehp __P((int));
     92  1.1  christos void losemhp __P((int));
     93  1.1  christos void raisehp __P((int));
     94  1.1  christos void raisemhp __P((int));
     95  1.1  christos void raisespells __P((int));
     96  1.1  christos void raisemspells __P((int));
     97  1.1  christos void losespells __P((int));
     98  1.1  christos void losemspells __P((int));
     99  1.1  christos int makemonst __P((int));
    100  1.1  christos void positionplayer __P((void));
    101  1.1  christos void recalc __P((void));
    102  1.1  christos void quit __P((void));
    103  1.1  christos void more __P((void));
    104  1.1  christos int take __P((int, int));
    105  1.1  christos int drop_object __P((int));
    106  1.1  christos void enchantarmor __P((void));
    107  1.1  christos void enchweapon __P((void));
    108  1.1  christos int pocketfull __P((void));
    109  1.1  christos int nearbymonst __P((void));
    110  1.1  christos int stealsomething __P((void));
    111  1.1  christos int emptyhanded __P((void));
    112  1.1  christos void creategem __P((void));
    113  1.1  christos void adjustcvalues __P((int, int));
    114  1.1  christos void gettokstr __P((char *));
    115  1.1  christos int getpassword __P((void));
    116  1.1  christos int getyn __P((void));
    117  1.1  christos int packweight __P((void));
    118  1.1  christos int rnd __P((int));
    119  1.1  christos int rund __P((int));
    120  1.1  christos 
    121  1.1  christos /* help.c */
    122  1.1  christos void help __P((void));
    123  1.1  christos void welcome __P((void));
    124  1.1  christos void retcont __P((void));
    125  1.1  christos int openhelp __P((void));
    126  1.1  christos 
    127  1.1  christos /* io.c */
    128  1.1  christos void setupvt100 __P((void));
    129  1.1  christos void clearvt100 __P((void));
    130  1.1  christos int getchar __P((void));
    131  1.1  christos void scbr __P((void));
    132  1.1  christos void sncbr __P((void));
    133  1.1  christos void newgame __P((void));
    134  1.1  christos void lprintf __P((const char *, ...));
    135  1.1  christos void lprint __P((long));
    136  1.1  christos void lwrite __P((char *, int));
    137  1.1  christos long lgetc __P((void));
    138  1.1  christos long lrint __P((void));
    139  1.1  christos void lrfill __P((char *, int));
    140  1.1  christos char *lgetw __P((void));
    141  1.1  christos char *lgetl __P((void));
    142  1.1  christos int lcreat __P((char *));
    143  1.1  christos int lopen __P((char *));
    144  1.1  christos int lappend __P((char *));
    145  1.1  christos void lrclose __P((void));
    146  1.1  christos void lwclose __P((void));
    147  1.1  christos void lprcat __P((char *));
    148  1.1  christos void cursor __P((int, int));
    149  1.1  christos void cursors __P((void));
    150  1.1  christos void init_term __P((void));
    151  1.1  christos void cl_line __P((int, int));
    152  1.1  christos void cl_up __P((int, int));
    153  1.1  christos void cl_dn __P((int, int));
    154  1.1  christos void standout __P((char *));
    155  1.1  christos void set_score_output __P((void));
    156  1.1  christos void lflush __P((void));
    157  1.1  christos void xputchar __P((int));
    158  1.1  christos void flush_buf __P((void));
    159  1.1  christos char *tmcapcnv __P((char *, char *));
    160  1.1  christos void beep __P((void));
    161  1.1  christos 
    162  1.1  christos /* main.c */
    163  1.1  christos int main __P((int, char **));
    164  1.1  christos void showstr __P((void));
    165  1.1  christos void qshowstr __P((void));
    166  1.1  christos void t_setup __P((int));
    167  1.1  christos void t_endup __P((int));
    168  1.1  christos void showwear __P((void));
    169  1.1  christos void showwield __P((void));
    170  1.1  christos void showread __P((void));
    171  1.1  christos void showeat __P((void));
    172  1.1  christos void showquaff __P((void));
    173  1.1  christos void show1 __P((int, char *[]));
    174  1.1  christos void show3 __P((int));
    175  1.1  christos void randmonst __P((void));
    176  1.1  christos void parse __P((void));
    177  1.1  christos void parse2 __P((void));
    178  1.1  christos void run __P((int));
    179  1.1  christos void wield __P((void));
    180  1.1  christos void ydhi __P((int));
    181  1.1  christos void ycwi __P((int));
    182  1.1  christos void wear __P((void));
    183  1.1  christos void dropobj __P((void));
    184  1.1  christos void readscr __P((void));
    185  1.1  christos void eatcookie __P((void));
    186  1.1  christos void quaff __P((void));
    187  1.1  christos int whatitem __P((char *));
    188  1.1  christos unsigned long readnum __P((long));
    189  1.1  christos void szero __P((char *));
    190  1.1  christos 
    191  1.1  christos /* monster.c */
    192  1.1  christos void createmonster __P((int));
    193  1.1  christos int cgood __P((int, int, int, int));
    194  1.1  christos void createitem __P((int, int));
    195  1.1  christos void cast __P((void));
    196  1.1  christos void speldamage __P((int));
    197  1.1  christos void loseint __P((void));
    198  1.1  christos int isconfuse __P((void));
    199  1.1  christos int nospell __P((int, int));
    200  1.1  christos int fullhit __P((int));
    201  1.1  christos void direct __P((int, int, char *, int));
    202  1.1  christos void godirect __P((int, int, char *, int, int));
    203  1.1  christos void ifblind __P((int, int));
    204  1.1  christos void tdirect __P((int));
    205  1.1  christos void omnidirect __P((int, int, char *));
    206  1.1  christos int vxy __P((int *, int *));
    207  1.1  christos void dirpoly __P((int));
    208  1.1  christos void hitmonster __P((int, int));
    209  1.1  christos int hitm __P((int, int, int));
    210  1.1  christos void hitplayer __P((int, int));
    211  1.1  christos void dropsomething __P((int));
    212  1.1  christos void dropgold __P((int));
    213  1.1  christos void something __P((int));
    214  1.1  christos int newobject __P((int, int *));
    215  1.1  christos int spattack __P((int, int, int));
    216  1.1  christos void checkloss __P((int));
    217  1.1  christos int annihilate __P((void));
    218  1.1  christos int newsphere __P((int, int, int, int));
    219  1.1  christos int rmsphere __P((int, int));
    220  1.1  christos void sphboom __P((int, int));
    221  1.1  christos void genmonst __P((void));
    222  1.1  christos 
    223  1.1  christos /* moreobj.c */
    224  1.1  christos void oaltar __P((void));
    225  1.1  christos void othrone __P((int));
    226  1.1  christos void odeadthrone __P((void));
    227  1.1  christos void ochest __P((void));
    228  1.1  christos void ofountain __P((void));
    229  1.1  christos void fntchange __P((int));
    230  1.1  christos 
    231  1.1  christos /* movem.c */
    232  1.1  christos void movemonst __P((void));
    233  1.1  christos void movemt __P((int, int));
    234  1.1  christos void mmove __P((int, int, int, int));
    235  1.1  christos void movsphere __P((void));
    236  1.1  christos 
    237  1.1  christos /* nap.c */
    238  1.1  christos void nap __P((int));
    239  1.1  christos 
    240  1.1  christos /* object.c */
    241  1.1  christos void lookforobject __P((void));
    242  1.1  christos void finditem __P((int));
    243  1.1  christos void ostairs __P((int));
    244  1.1  christos void oteleport __P((int));
    245  1.1  christos void opotion __P((int));
    246  1.1  christos void quaffpotion __P((int));
    247  1.1  christos void oscroll __P((int));
    248  1.1  christos void adjusttime __P((long));
    249  1.1  christos void read_scroll __P((int));
    250  1.1  christos void oorb __P((void));
    251  1.1  christos void opit __P((void));
    252  1.1  christos void obottomless __P((void));
    253  1.1  christos void oelevator __P((int));
    254  1.1  christos void ostatue __P((void));
    255  1.1  christos void omirror __P((void));
    256  1.1  christos void obook __P((void));
    257  1.1  christos void readbook __P((int));
    258  1.1  christos void ocookie __P((void));
    259  1.1  christos void ogold __P((int));
    260  1.1  christos void ohome __P((void));
    261  1.1  christos void iopts __P((void));
    262  1.1  christos void ignore __P((void));
    263  1.1  christos 
    264  1.1  christos /* regen.c */
    265  1.1  christos void regen __P((void));
    266  1.1  christos 
    267  1.1  christos /* savelev.c */
    268  1.1  christos void savelevel __P((void));
    269  1.1  christos void getlevel __P((void));
    270  1.1  christos 
    271  1.1  christos /* scores.c */
    272  1.1  christos int readboard __P((void));
    273  1.1  christos int writeboard __P((void));
    274  1.1  christos int makeboard __P((void));
    275  1.1  christos int hashewon __P((void));
    276  1.1  christos long paytaxes __P((long));
    277  1.1  christos int winshou __P((void));
    278  1.1  christos int shou __P((int));
    279  1.1  christos void showscores __P((void));
    280  1.1  christos void showallscores __P((void));
    281  1.1  christos int sortboard __P((void));
    282  1.1  christos void newscore __P((long, char *, int, int));
    283  1.1  christos void new1sub __P((long, int, char *, long));
    284  1.1  christos void new2sub __P((long, int, char *, int));
    285  1.1  christos void died __P((int));
    286  1.1  christos void diedsub __P((int));
    287  1.1  christos void diedlog __P((void));
    288  1.1  christos int getplid __P((char *));
    289  1.1  christos 
    290  1.1  christos /* signal.c */
    291  1.1  christos void sigsetup __P((void));
    292  1.1  christos 
    293  1.1  christos /* store.c */
    294  1.1  christos void dnd_2hed __P((void));
    295  1.1  christos void dnd_hed __P((void));
    296  1.1  christos void dndstore __P((void));
    297  1.1  christos void sch_hed __P((void));
    298  1.1  christos void oschool __P((void));
    299  1.1  christos void obank __P((void));
    300  1.1  christos void obank2 __P((void));
    301  1.1  christos void ointerest __P((void));
    302  1.1  christos void obanksub __P((void));
    303  1.1  christos void appraise __P((int));
    304  1.1  christos void otradepost __P((void));
    305  1.1  christos void cnsitm __P((void));
    306  1.1  christos void olrs __P((void));
    307  1.1  christos 
    308  1.1  christos /* tok.c */
    309  1.1  christos int yylex __P((void));
    310  1.1  christos void flushall __P((void));
    311  1.1  christos void sethard __P((int));
    312  1.1  christos void readopts __P((void));
    313