annotate proto.h @ 3:5a977ccbc7a9 default tip

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