extern.h revision 1.13 1 /* $NetBSD: extern.h,v 1.13 2009/08/12 08:04:05 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 * 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 /* action.c */
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);
42
43 /* bill.c */
44 void mailbill(void);
45
46 /* config.c */
47
48 /* create.c */
49 void makeplayer(void);
50 void newcavelevel(int);
51 void eat(int, int);
52 int fillmonst(int);
53
54 /* data.c */
55
56 /* diag.c */
57 void diag(void);
58 int dcount(int);
59 void diagdrawscreen(void);
60 int savegame(char *);
61 void restoregame(char *);
62
63 /* display.c */
64 void bottomline(void);
65 void bottomhp(void);
66 void bottomspell(void);
67 void bottomdo(void);
68 void bot_linex(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);
75 int moveplayer(int);
76 void seemagic(int);
77
78 /* fortune.c */
79 const char *fortune(void);
80
81 /* global.c */
82 void raiselevel(void);
83 void loselevel(void);
84 void raiseexperience(long);
85 void loseexperience(long);
86 void losehp(int);
87 void losemhp(int);
88 void raisehp(int);
89 void raisemhp(int);
90 void raisemspells(int);
91 void losemspells(int);
92 int makemonst(int);
93 void positionplayer(void);
94 void recalc(void);
95 void quit(void);
96 void more(void);
97 int take(int, int);
98 int drop_object(int);
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);
108 int getyn(void);
109 int packweight(void);
110 int rnd(int);
111 int rund(int);
112
113 /* help.c */
114 void help(void);
115 void welcome(void);
116
117 /* io.c */
118 void setupvt100(void);
119 void clearvt100(void);
120 int ttgetch(void);
121 void scbr(void);
122 void sncbr(void);
123 void newgame(void);
124 void lprintf(const char *, ...) __attribute__((__format__(__printf__, 1, 2)));
125 void lprint(long);
126 void lwrite(char *, int);
127 long lgetc(void);
128 long larn_lrint(void);
129 void lrfill(char *, int);
130 char *lgetw(void);
131 char *lgetl(void);
132 int lcreat(char *);
133 int lopen(char *);
134 int lappend(char *);
135 void lrclose(void);
136 void lwclose(void);
137 void lprcat(const char *);
138 void cursor(int, int);
139 void cursors(void);
140 void init_term(void);
141 void cl_line(int, int);
142 void cl_up(int, int);
143 void cl_dn(int, int);
144 void standout(const char *);
145 void set_score_output(void);
146 void lflush(void);
147 char *tmcapcnv(char *, char *);
148 void beep(void);
149
150 /* main.c */
151 int main(int, char **);
152 void qshowstr(void);
153 void show3(int);
154 void parse2(void);
155 unsigned long readnum(long);
156 void szero(char *);
157
158 /* monster.c */
159 void createmonster(int);
160 void createitem(int, int);
161 void cast(void);
162 void godirect(int, int, const char *, int, int);
163 int vxy(int *, int *);
164 void hitmonster(int, int);
165 void hitplayer(int, int);
166 void dropgold(int);
167 void something(int);
168 int newobject(int, int *);
169 void checkloss(int);
170 int annihilate(void);
171 int newsphere(int, int, int, int);
172 int rmsphere(int, int);
173
174 /* moreobj.c */
175 void oaltar(void);
176 void othrone(int);
177 void odeadthrone(void);
178 void ochest(void);
179 void ofountain(void);
180 void fntchange(int);
181
182 /* movem.c */
183 void movemonst(void);
184
185 /* nap.c */
186 void nap(int);
187
188 /* object.c */
189 void lookforobject(void);
190 void oteleport(int);
191 void quaffpotion(int);
192 void adjusttime(long);
193 void read_scroll(int);
194 void readbook(int);
195 void iopts(void);
196 void ignore(void);
197
198 /* regen.c */
199 void regen(void);
200
201 /* savelev.c */
202 void savelevel(void);
203 void getlevel(void);
204
205 /* scores.c */
206 int makeboard(void);
207 int hashewon(void);
208 long paytaxes(long);
209 void showscores(void);
210 void showallscores(void);
211 void died(int);
212 void diedlog(void);
213 int getplid(char *);
214
215 /* signal.c */
216 void sigsetup(void);
217
218 /* store.c */
219 void dndstore(void);
220 void oschool(void);
221 void obank(void);
222 void obank2(void);
223 void ointerest(void);
224 void otradepost(void);
225 void olrs(void);
226
227 /* tok.c */
228 int yylex(void);
229 void flushall(void);
230 void sethard(int);
231 void readopts(void);
232