Home | History | Annotate | Line # | Download | only in adventure
extern.h revision 1.6
      1 /*	$NetBSD: extern.h,v 1.6 1998/08/29 22:40:07 hubertf 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 #include <string.h>
     33 
     34 /* crc.c */
     35 void crc_start __P((void));
     36 unsigned long crc __P((char *, int));
     37 
     38 /* done.c */
     39 int score __P((void));
     40 void done __P((int));
     41 int die __P((int));
     42 
     43 /* init.c */
     44 void init __P((void));
     45 char   *decr __P((int, int, int, int, int));
     46 void linkdata __P((void));
     47 void trapdel __P((int));
     48 void startup __P((void));
     49 
     50 /* io.c */
     51 void getin __P((char **, char **));
     52 int yes __P((int, int, int));
     53 int yesm __P((int, int, int));
     54 int next __P((void));
     55 void rdata __P((void));
     56 int rnum __P((void));
     57 void rdesc __P((int));
     58 void rtrav __P((void));
     59 #ifdef DEBUG
     60 void twrite __P((int));
     61 #endif
     62 void rvoc __P((void));
     63 void rlocs __P((void));
     64 void rdflt __P((void));
     65 void rliq __P((void));
     66 void rhints __P((void));
     67 void rspeak __P((int));
     68 void mspeak __P((int));
     69 struct text;
     70 void speak __P((struct text *));
     71 void pspeak __P((int, int));
     72 
     73 /* main.c */
     74 int main __P((int, char **));
     75 
     76 /* save.c */
     77 int save __P((char *));
     78 int restore __P((char *));
     79 
     80 /* subr.c */
     81 int toting __P((int));
     82 int here __P((int));
     83 int at  __P((int));
     84 int liq2 __P((int));
     85 int liq __P((void));
     86 int liqloc __P((int));
     87 int bitset __P((int, int));
     88 int forced __P((int));
     89 int dark __P((void));
     90 int pct __P((int));
     91 int fdwarf __P((void));
     92 int march __P((void));
     93 int mback __P((void));
     94 int specials __P((void));
     95 int trbridge __P((void));
     96 int badmove __P((void));
     97 int bug __P((int)) __attribute__((__noreturn__));
     98 int checkhints __P((void));
     99 int trsay __P((void));
    100 int trtake __P((void));
    101 int dropper __P((void));
    102 int trdrop __P((void));
    103 int tropen __P((void));
    104 int trkill __P((void));
    105 int trtoss __P((void));
    106 int trfeed __P((void));
    107 int trfill __P((void));
    108 int closing __P((void));
    109 int caveclose __P((void));
    110 
    111 /* vocab.c */
    112 void dstroy __P((int));
    113 void juggle __P((int));
    114 void move __P((int, int));
    115 int put __P((int, int, int));
    116 void carry __P((int, int));
    117 void drop __P((int, int));
    118 int vocab __P((char *, int, int));
    119 
    120 /* These three used to be functions in vocab.c */
    121 #define copystr(src, dest)	strcpy((dest), (src))
    122 #define weq(str1, str2)		(!strncmp((str1), (str2), 5))
    123 #define length(str)		(strlen((str)) + 1)
    124 
    125 void prht __P((void));
    126 
    127 /* wizard.c */
    128 void datime __P((int *, int *));
    129 void poof __P((void));
    130 int Start __P((void));
    131 int wizard __P((void));
    132 void ciao __P((void));
    133 int ran __P((int));
    134