1/*	$NetBSD: extern.h,v 1.15 2011/08/26 06:18:17 dholland 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 *
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27/* action.c */
28void act_remove_gems(int);
29void act_sit_throne(int);
30void act_drink_fountain(void);
31void act_wash_fountain(void);
32void act_desecrate_altar(void);
33void act_donation_pray(void);
34void act_just_pray(void);
35void act_ignore_altar(void);
36void act_open_chest(int, int);
37
38/* bill.c */
39__dead void mailbill(void);
40
41/* config.c */
42
43/* create.c */
44void makeplayer(void);
45void newcavelevel(int);
46void eat(int, int);
47int fillmonst(int);
48
49/* data.c */
50
51/* diag.c */
52void diag(void);
53int dcount(int);
54void diagdrawscreen(void);
55int savegame(char *);
56void restoregame(char *);
57
58/* display.c */
59void bottomline(void);
60void bottomhp(void);
61void bottomspell(void);
62void bottomdo(void);
63void bot_linex(void);
64void bottomgold(void);
65void draws(int, int, int, int);
66void drawscreen(void);
67void showcell(int, int);
68void show1cell(int, int);
69void showplayer(void);
70int moveplayer(int);
71void seemagic(int);
72
73/* fortune.c */
74const char *fortune(void);
75
76/* global.c */
77void raiselevel(void);
78void loselevel(void);
79void raiseexperience(long);
80void loseexperience(long);
81void losehp(int);
82void losemhp(int);
83void raisehp(int);
84void raisemhp(int);
85void raisemspells(int);
86void losemspells(int);
87int makemonst(int);
88void positionplayer(void);
89void recalc(void);
90void quit(void);
91void more(void);
92int take(int, int);
93int drop_object(int);
94void enchantarmor(void);
95void enchweapon(void);
96int pocketfull(void);
97int nearbymonst(void);
98int stealsomething(void);
99int emptyhanded(void);
100void creategem(void);
101void adjustcvalues(int, int);
102int getpassword(void);
103int getyn(void);
104int packweight(void);
105int rnd(int);
106int rund(int);
107
108/* help.c */
109void help(void);
110void welcome(void);
111
112/* io.c */
113void setupvt100(void);
114void clearvt100(void);
115int ttgetch(void);
116void scbr(void);
117void sncbr(void);
118void newgame(void);
119void lprintf(const char *, ...) __printflike(1, 2);
120void lprint(long);
121void lwrite(char *, int);
122long lgetc(void);
123long larn_lrint(void);
124void lrfill(char *, int);
125char *lgetw(void);
126char *lgetl(void);
127int lcreat(char *);
128int lopen(char *);
129int lappend(char *);
130void lrclose(void);
131void lwclose(void);
132void lprcat(const char *);
133void cursor(int, int);
134void cursors(void);
135void init_term(void);
136void cl_line(int, int);
137void cl_up(int, int);
138void cl_dn(int, int);
139void standout(const char *);
140void set_score_output(void);
141void lflush(void);
142char *tmcapcnv(char *, char *);
143void beep(void);
144
145/* main.c */
146int main(int, char **);
147void qshowstr(void);
148void show3(int);
149void parse2(void);
150unsigned long readnum(long);
151void szero(char *);
152
153/* monster.c */
154void createmonster(int);
155void createitem(int, int);
156void cast(void);
157void godirect(int, int, const char *, int, int);
158int vxy(int *, int *);
159void hitmonster(int, int);
160void hitplayer(int, int);
161void dropgold(int);
162void something(int);
163int newobject(int, int *);
164void checkloss(int);
165int annihilate(void);
166int newsphere(int, int, int, int);
167int rmsphere(int, int);
168
169/* moreobj.c */
170void oaltar(void);
171void othrone(int);
172void odeadthrone(void);
173void ochest(void);
174void ofountain(void);
175void fntchange(int);
176
177/* movem.c */
178void movemonst(void);
179
180/* nap.c */
181void nap(int);
182
183/* object.c */
184void lookforobject(void);
185void oteleport(int);
186void quaffpotion(int);
187void adjusttime(long);
188void read_scroll(int);
189void readbook(int);
190void iopts(void);
191void ignore(void);
192
193/* regen.c */
194void regen(void);
195
196/* savelev.c */
197void savelevel(void);
198void getlevel(void);
199
200/* scores.c */
201int makeboard(void);
202int hashewon(void);
203long paytaxes(long);
204void showscores(void);
205void showallscores(void);
206void died(int);
207void diedlog(void);
208int getplid(char *);
209
210/* signal.c */
211void sigsetup(void);
212
213/* store.c */
214void dndstore(void);
215void oschool(void);
216void obank(void);
217void obank2(void);
218void ointerest(void);
219void otradepost(void);
220void olrs(void);
221
222/* tok.c */
223int yylex(void);
224void flushall(void);
225void sethard(int);
226void readopts(void);
227