]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - larn/extern.h
1 /* $NetBSD: extern.h,v 1.5 2006/05/11 10:23:24 mrg 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);
43 void treasureroom(int);
44 void troom(int, int, int, int, int, int);
46 void fillmroom(int, int, int);
47 void froom(int, int, int);
57 void diagdrawscreen(void);
59 void restoregame(char *);
65 void bottomline(void);
67 void bottomspell(void);
70 void bottomgold(void);
72 void bot_spellx(void);
74 void draws(int, int, int, int);
75 void drawscreen(void);
76 void showcell(int, int);
77 void show1cell(int, int);
78 void showplayer(void);
87 void raiselevel(void);
89 void raiseexperience(long);
90 void loseexperience(long);
95 void raisespells(int);
96 void raisemspells(int);
98 void losemspells(int);
100 void positionplayer(void);
105 int drop_object(int);
106 void enchantarmor(void);
107 void enchweapon(void);
108 int pocketfull(void);
109 int nearbymonst(void);
110 int stealsomething(void);
111 int emptyhanded(void);
112 void creategem(void);
113 void adjustcvalues(int, int);
114 void gettokstr(char *);
115 int getpassword(void);
117 int packweight(void);
128 void setupvt100(void);
129 void clearvt100(void);
134 void lprintf(const char *, ...);
136 void lwrite(char *, int);
138 long larn_lrint(void);
139 void lrfill(char *, int);
148 void cursor(int, int);
150 void init_term(void);
151 void cl_line(int, int);
152 void cl_up(int, int);
153 void cl_dn(int, int);
154 void standout(char *);
155 void set_score_output(void);
158 void flush_buf(void);
159 char *tmcapcnv(char *, char *);
163 int main(int, char **);
169 void showwield(void);
172 void showquaff(void);
173 void show1(int, char *[]);
175 void randmonst(void);
185 void eatcookie(void);
187 int whatitem(char *);
188 unsigned long readnum(long);
192 void createmonster(int);
193 int cgood(int, int, int, int);
194 void createitem(int, int);
196 void speldamage(int);
199 int nospell(int, int);
201 void direct(int, int, char *, int);
202 void godirect(int, int, char *, int, int);
203 void ifblind(int, int);
205 void omnidirect(int, int, char *);
206 int vxy(int *, int *);
208 void hitmonster(int, int);
209 int hitm(int, int, int);
210 void hitplayer(int, int);
211 void dropsomething(int);
214 int newobject(int, int *);
215 int spattack(int, int, int);
217 int annihilate(void);
218 int newsphere(int, int, int, int);
219 int rmsphere(int, int);
220 void sphboom(int, int);
226 void odeadthrone(void);
228 void ofountain(void);
232 void movemonst(void);
233 void movemt(int, int);
234 void mmove(int, int, int, int);
235 void movsphere(void);
241 void lookforobject(void);
246 void quaffpotion(int);
248 void adjusttime(long);
249 void read_scroll(int);
252 void obottomless(void);
268 void savelevel(void);
273 int writeboard(void);
279 void showscores(void);
280 void showallscores(void);
282 void newscore(long, char *, int, int);
283 void new1sub(long, int, char *, long);
284 void new2sub(long, int, char *, int);
301 void ointerest(void);
304 void otradepost(void);