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