]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - larn/extern.h
1 /* $NetBSD: extern.h,v 1.12 2008/02/19 06:05:26 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.
33 void act_remove_gems(int);
34 void act_sit_throne(int);
35 void act_drink_fountain(void);
36 void act_wash_fountain(void);
37 void act_desecrate_altar(void);
38 void act_donation_pray(void);
39 void act_just_pray(void);
40 void act_ignore_altar(void);
41 void act_open_chest(int, int);
49 void makeplayer(void);
50 void newcavelevel(int);
59 void diagdrawscreen(void);
61 void restoregame(char *);
64 void bottomline(void);
66 void bottomspell(void);
69 void bottomgold(void);
70 void draws(int, int, int, int);
71 void drawscreen(void);
72 void showcell(int, int);
73 void show1cell(int, int);
74 void showplayer(void);
79 const char *fortune(void);
82 void raiselevel(void);
84 void raiseexperience(long);
85 void loseexperience(long);
90 void raisemspells(int);
91 void losemspells(int);
93 void positionplayer(void);
99 void enchantarmor(void);
100 void enchweapon(void);
101 int pocketfull(void);
102 int nearbymonst(void);
103 int stealsomething(void);
104 int emptyhanded(void);
105 void creategem(void);
106 void adjustcvalues(int, int);
107 int getpassword(void);
109 int packweight(void);
119 void setupvt100(void);
120 void clearvt100(void);
125 void lprintf(const char *, ...) __attribute__((__format__(__printf__
, 1, 2)));
127 void lwrite(char *, int);
129 long larn_lrint(void);
130 void lrfill(char *, int);
138 void lprcat(const char *);
139 void cursor(int, int);
141 void init_term(void);
142 void cl_line(int, int);
143 void cl_up(int, int);
144 void cl_dn(int, int);
145 void standout(const char *);
146 void set_score_output(void);
148 char *tmcapcnv(char *, char *);
152 int main(int, char **);
158 void showwield(void);
161 void showquaff(void);
162 void show1(int, const char *[]);
164 void randmonst(void);
174 void eatcookie(void);
176 unsigned long readnum(long);
180 void createmonster(int);
181 void createitem(int, int);
183 void speldamage(int);
186 int nospell(int, int);
188 void direct(int, int, const char *, int);
189 void godirect(int, int, const char *, int, int);
190 void ifblind(int, int);
192 void omnidirect(int, int, const char *);
193 int vxy(int *, int *);
195 void hitmonster(int, int);
196 int hitm(int, int, int);
197 void hitplayer(int, int);
200 int newobject(int, int *);
202 int annihilate(void);
203 int newsphere(int, int, int, int);
204 int rmsphere(int, int);
205 void sphboom(int, int);
211 void odeadthrone(void);
213 void ofountain(void);
217 void movemonst(void);
218 void movemt(int, int);
219 void mmove(int, int, int, int);
220 void movsphere(void);
226 void lookforobject(void);
231 void quaffpotion(int);
233 void adjusttime(long);
234 void read_scroll(int);
237 void obottomless(void);
253 void savelevel(void);
258 int writeboard(void);
264 void showscores(void);
265 void showallscores(void);
267 void newscore(long, char *, int, int);
268 void new1sub(long, int, char *, long);
269 void new2sub(long, int, char *, int);
286 void ointerest(void);
289 void otradepost(void);