comparison proto.h @ 3:5a977ccbc7a9 default tip

Empty changelog
author darius
date Sat, 06 Dec 1997 05:41:29 +0000
parents
children
comparison
equal deleted inserted replaced
2:fba0b6e6cdc7 3:5a977ccbc7a9
1 /* $Id: proto.h,v 1.1.1.1 1997/12/06 05:41:30 darius Exp $ */
2
3 #ifndef proto_h_
4 #define proto_h_
5
6 #ifndef P
7 #ifdef __STDC__
8 #define P(s) s
9 #else
10 #define P(s) ()
11 #endif
12 #endif
13
14 #include <stdio.h>
15 #include <X11/Xlib.h>
16 #include <X11/Xutil.h>
17 #include "Wlib.h"
18 #include "struct.h"
19
20 /* autokey.c */
21 int setAutoKeyOn P((void));
22 int setAutoKeyOff P((void));
23 void autoKeyDefaults P((void));
24 int doAutoKey P((void));
25 int autoKeyAllOff P((void));
26 int autoKeyOff P((W_Event * data));
27 int autoKeyTorpOn P((void));
28 int autoKeyTorpReqOn P((void));
29 int autoKeyPhaserOn P((void));
30 int autoKeyPhaserReqOn P((void));
31 int autoKeyDetOn P((void));
32 int autoKeyDetReqOn P((void));
33 int autoKeyPlasmaReqOn P((void));
34 int autoKeyBombReqOn P((void));
35 int autoKeyBeamUpReqOn P((void));
36 int autoKeyBeamDownReqOn P((void));
37 int autoKeyOrbitReqOn P((void));
38
39 /* beeplite.c */
40 void litedefaults P((void));
41 void rcdlite P((struct distress *));
42
43 /* blk_parsemotd.c */
44 void blk_parsemotd P((char *line));
45
46 /* colors.c */
47 void getColorDefs P((void));
48
49 /* data.c */
50
51 /* dashboard.c */
52 void stline P((int flag));
53 void redrawTstats P((void));
54 void light_send P((void));
55 void light_receive P((void));
56
57 /* death.c */
58 void death P((void));
59
60 /* defaults.c */
61 char *initDefaults P((char *deffile));
62 char *getdefault P((char *str));
63 char *stringDefault P((char *str, char *preferred));
64 int booleanDefault P((char *def, int preferred));
65 int intDefault P((char *def, int preferred));
66 int defaultShip P((int preferred));
67 void resetDefaults P((void));
68 char *expandFilename P((char *));
69
70 /* detonate.c */
71 void detmine P((void));
72
73 /* distress.c */
74 int testmacro P((char *, char *, int *, int *));
75 int condmacro P((char *, char *, int *, int *, int));
76 int solvetest P((char *, int *));
77 int skipmacro P((char [], int));
78 int makedistress P((struct distress *, char *, char *));
79
80 /* dmessage.c */
81 void dmessage P((char *message, unsigned int flags, unsigned int from, unsigned int to));
82 void logit P((char *message));
83 void sendVersion P((void));
84
85 /* enter.c */
86 void enter P((void));
87 void openmem P((void));
88
89 /* findslot.c */
90 int findslot P((void));
91
92 /* getname.c */
93 void getname P((char *defname, char *defpasswd));
94
95 /* getship.c */
96 void init_shiptypes P((void));
97 struct ship *getship P((int s_type));
98 void init_galaxy_class P((void));
99
100 /* helpwin.c */
101 void fillhelp P((void));
102
103 /* inform.c */
104 void inform P((W_Window ww, int x, int y, int key));
105 void destroyInfo P((void));
106
107 /* input.c */
108 void initinput P((void));
109 void input P((void));
110 int getcourse P((W_Window ww, int x, int y));
111
112 /* interface.c */
113 void set_speed P((int speed));
114 void set_course P((unsigned int dir));
115 void shield_up P((void));
116 void shield_down P((void));
117 void shield_tog P((void));
118 void bomb_planet P((void));
119 void beam_up P((void));
120 void beam_down P((void));
121 void repair P((void));
122 void repair_off P((void));
123 void repeat_message P((void));
124 void cloak P((void));
125 void cloak_on P((void));
126 void cloak_off P((void));
127 int mtime P((void));
128
129 /* keymap.c */
130 void buildShipKeymap P((struct ship * shipp));
131 void initkeymap P((int type));
132 void keymapAdd P((char *str, char *map));
133 void ckeymapAdd P((char *cstr, char *map));
134 void buttonmapAdd P((char *str, char *map));
135 void cbuttonmapAdd P((char *cstr, char *map));
136 void dumpKeymap P((void));
137
138 /* main.c */
139 /* doy, this prototype is wholly unecessary */
140 /* int main P((int argc, char **argv)); */
141 void reaper P((void));
142 unsigned long dotAddrToNetAddr P((char *str));
143
144 #ifdef MACROS
145 /* macros.c */
146 void doMacro P((W_Event * data));
147 void initMacros P((void));
148
149 /* macrowin.c */
150 void showMacroWin P((void));
151 #endif /* MACROS */
152
153 /* newwin.c */
154 void newwin P((char *hostmon, char *progname));
155 void mapAll P((void));
156 void entrywindow P((int *team, int *s_type));
157 int deadTeam P((int owner));
158 void erase_motd P((void));
159 void newMotdPic P((int x, int y, int width, int height, char *bits, int page));
160 void newMotdLine P((char *line));
161 void fillhelp P((void));
162 void drawIcon P((void));
163 void do_refit P((int type));
164 void showMotd P((W_Window win));
165
166 /* motdwin.c */
167 void motdWinEvent P((int));
168 void showMotdWin P((void));
169
170 /* option.c */
171 void optionwindow P((void));
172 void optionredrawtarget P((W_Window win));
173 void optionredrawoption P((int *ip));
174 int optionaction P((W_Event * data));
175 void optiondone P((void));
176
177 #ifdef METASERVER
178 /* parsemeta.c */
179 void parsemeta P((void));
180 void metawindow P((void));
181 void metainput P((void));
182 /* void metaaction P((W_Event * data)); */
183 #endif /* METASERVER */
184
185 /* planetlist.c */
186 void planetlist P((void));
187
188 /* planets.c */
189 void initPlanets P((void));
190 void checkRedraw P((int x, int y));
191 void initStars P((void));
192 void drawStars P((void));
193 void clearStars P((void));
194
195 /* playerlist.c */
196 void playerlist P((void));
197 void playerlist2 P((void));
198 struct player;
199 char *get_players_rank_name P((struct player * j));
200 void selectblkbozo P((W_Event * data));
201 void playerwEvent P((W_Event * data));
202
203 /* ranklist.c */
204 void ranklist P((void));
205
206 /* ratings.c */
207 struct ratings *get_ratings P((struct player * s, struct ratings * r));
208
209 /* redraw.c */
210 struct _clearzone *new_czone P((void));
211
212 /* reserved.c */
213 int makeReservedPacket P((void *packet));
214 int encryptReservedPacket P((void *spacket, void *cpacket, char *server, int pno));
215
216 /* shipbitmaps.c */
217 void slurp_ship_bitmaps P((void));
218 void replace_shipshape P((int, int, int, int, int));
219 void replace_ship_bitmaps P((int, int, int, char *));
220
221 /* sintab.c */
222 void inittrigtables P((void));
223
224 /* smessage.c */
225 void message_expose P((void));
226 void smessage P((int ichar));
227 void smessage_ahead P((int head, int ichar));
228 void pmessage P((char *str, int recip, int group));
229 void emergency P((void));
230 void carry_report P((void));
231 void message_on P((void));
232 void message_off P((void));
233 void sendCharMessage P((char *buf, int ch));
234
235 /* socket.c */
236 void print_totals P((void));
237 void connectToServer P((int port));
238 void callServer P((int port, char *server));
239 int isServerDead P((void));
240 void socketPause P((int sec, int usec));
241 int readFromServer P((void));
242 int readFromServer P((void));
243 void sendShortPacket P((int type, int state));
244 void sendTeamReq P((int team, int ship));
245 void sendLoginReq P((char *name, char *pass, char *login, int query));
246 void sendTractorReq P((int state, int pnum));
247 void sendRepressReq P((int state, int pnum));
248 void sendDetMineReq P((int torp));
249 void sendMessage P((char *mes, int group, int indiv));
250 void sendOptionsPacket P((void));
251 void sendUpdatePacket P((long speed));
252 void sendUdpReq P((int req));
253 int closeUdpConn P((void));
254 short swaps P((int in));
255 int mask_to_idx P((int));
256
257 /* stats.c */
258 void redrawStats P((void));
259 void updateStats P((void));
260 void calibrate_stats P((void));
261
262 /* udpopt.c */
263 void udpwindow P((void));
264 void udprefresh P((int i));
265 void udpaction P((W_Event * data));
266 void udpdone P((void));
267
268 /* util.c */
269 int angdist P((unsigned int x, unsigned int y));
270 struct obtype *gettarget P((W_Window ww, int x, int y, int targtype));
271 struct id *getTargetID P((W_Window ww, int x, int y, int targtype));
272 char *team_bit_string P((int mask));
273
274 /* varydamage.c */
275 struct ship_shape;
276 void doShields P((int dx, int dy, struct ship_shape * ship_bits, struct player * j));
277 void doHull P((int dx, int dy, struct ship_shape * ship_bits, struct player * j));
278
279 /* war.c */
280 void warwindow P((void));
281 void waraction P((W_Event * data));
282
283 /* warning.c */
284 void warning P((char *text));
285 char *timeString P((time_t time));
286
287 /* wide_plist.c */
288 void wideplayerlist P((void));
289 void wideplayerlist2 P((void));
290
291 /* x11window.c */
292 int checkMapped P((char *window));
293 void W_RenameWindow P((W_Window window, char *str));
294 void W_GetEvent P((W_Event * wevent));
295
296 #ifdef RECORDER
297 /* recorder.c */
298 void startRecorder P((void));
299 void stopRecorder P((void));
300 void recordPacket P((char *data, int len));
301 void writeUpdateMarker P((void));
302 int startPlayback P((void));
303 int readRecorded P((int fp, char *data, int len));
304 #endif
305
306 #ifdef XTREKRC_HELP
307 /* defwin.c */
308 void showdef P((void));
309 void def_action P((W_Event *ev));
310 #endif
311
312 #endif