1 /* $NetBSD: extern.h,v 1.13 2009/08/12 08:04:05 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.
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.
28 void act_remove_gems(int);
29 void act_sit_throne(int);
30 void act_drink_fountain(void);
31 void act_wash_fountain(void);
32 void act_desecrate_altar(void);
33 void act_donation_pray(void);
34 void act_just_pray(void);
35 void act_ignore_altar(void);
36 void act_open_chest(int, int);
44 void makeplayer(void);
45 void newcavelevel(int);
54 void diagdrawscreen(void);
56 void restoregame(char *);
59 void bottomline(void);
61 void bottomspell(void);
64 void bottomgold(void);
65 void draws(int, int, int, int);
66 void drawscreen(void);
67 void showcell(int, int);
68 void show1cell(int, int);
69 void showplayer(void);
74 const char *fortune(void);
77 void raiselevel(void);
79 void raiseexperience(long);
80 void loseexperience(long);
85 void raisemspells(int);
86 void losemspells(int);
88 void positionplayer(void);
94 void enchantarmor(void);
95 void enchweapon(void);
97 int nearbymonst(void);
98 int stealsomething(void);
99 int emptyhanded(void);
100 void creategem(void);
101 void adjustcvalues(int, int);
102 int getpassword(void);
104 int packweight(void);
113 void setupvt100(void);
114 void clearvt100(void);
119 void lprintf(const char *, ...) __attribute__((__format__(__printf__
, 1, 2)));
121 void lwrite(char *, int);
123 long larn_lrint(void);
124 void lrfill(char *, int);
132 void lprcat(const char *);
133 void cursor(int, int);
135 void init_term(void);
136 void cl_line(int, int);
137 void cl_up(int, int);
138 void cl_dn(int, int);
139 void standout(const char *);
140 void set_score_output(void);
142 char *tmcapcnv(char *, char *);
146 int main(int, char **);
150 unsigned long readnum(long);
154 void createmonster(int);
155 void createitem(int, int);
157 void godirect(int, int, const char *, int, int);
158 int vxy(int *, int *);
159 void hitmonster(int, int);
160 void hitplayer(int, int);
163 int newobject(int, int *);
165 int annihilate(void);
166 int newsphere(int, int, int, int);
167 int rmsphere(int, int);
172 void odeadthrone(void);
174 void ofountain(void);
178 void movemonst(void);
184 void lookforobject(void);
186 void quaffpotion(int);
187 void adjusttime(long);
188 void read_scroll(int);
197 void savelevel(void);
204 void showscores(void);
205 void showallscores(void);
218 void ointerest(void);
219 void otradepost(void);