]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - larn/extern.h
1 /* $NetBSD: extern.h,v 1.11 2008/02/04 01:07:01 dholland Exp $ */
4 * Copyright (c) 1997 Christos Zoulas. All rights reserved.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
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.
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.
38 void makeplayer(void);
39 void newcavelevel(int);
48 void diagdrawscreen(void);
50 void restoregame(char *);
53 void bottomline(void);
55 void bottomspell(void);
58 void bottomgold(void);
59 void draws(int, int, int, int);
60 void drawscreen(void);
61 void showcell(int, int);
62 void show1cell(int, int);
63 void showplayer(void);
68 const char *fortune(void);
71 void raiselevel(void);
73 void raiseexperience(long);
74 void loseexperience(long);
79 void raisemspells(int);
80 void losemspells(int);
82 void positionplayer(void);
88 void enchantarmor(void);
89 void enchweapon(void);
91 int nearbymonst(void);
92 int stealsomething(void);
93 int emptyhanded(void);
95 void adjustcvalues(int, int);
96 int getpassword(void);
108 void setupvt100(void);
109 void clearvt100(void);
114 void lprintf(const char *, ...) __attribute__((__format__(__printf__
, 1, 2)));
116 void lwrite(char *, int);
118 long larn_lrint(void);
119 void lrfill(char *, int);
127 void lprcat(const char *);
128 void cursor(int, int);
130 void init_term(void);
131 void cl_line(int, int);
132 void cl_up(int, int);
133 void cl_dn(int, int);
134 void standout(const char *);
135 void set_score_output(void);
137 char *tmcapcnv(char *, char *);
141 int main(int, char **);
147 void showwield(void);
150 void showquaff(void);
151 void show1(int, const char *[]);
153 void randmonst(void);
163 void eatcookie(void);
165 unsigned long readnum(long);
169 void createmonster(int);
170 void createitem(int, int);
172 void speldamage(int);
175 int nospell(int, int);
177 void direct(int, int, const char *, int);
178 void godirect(int, int, const char *, int, int);
179 void ifblind(int, int);
181 void omnidirect(int, int, const char *);
182 int vxy(int *, int *);
184 void hitmonster(int, int);
185 int hitm(int, int, int);
186 void hitplayer(int, int);
189 int newobject(int, int *);
191 int annihilate(void);
192 int newsphere(int, int, int, int);
193 int rmsphere(int, int);
194 void sphboom(int, int);
200 void odeadthrone(void);
202 void ofountain(void);
206 void movemonst(void);
207 void movemt(int, int);
208 void mmove(int, int, int, int);
209 void movsphere(void);
215 void lookforobject(void);
220 void quaffpotion(int);
222 void adjusttime(long);
223 void read_scroll(int);
226 void obottomless(void);
242 void savelevel(void);
247 int writeboard(void);
253 void showscores(void);
254 void showallscores(void);
256 void newscore(long, char *, int, int);
257 void new1sub(long, int, char *, long);
258 void new2sub(long, int, char *, int);
275 void ointerest(void);
278 void otradepost(void);