annotate data.h @ 3:5a977ccbc7a9 default tip

Empty changelog
author darius
date Sat, 06 Dec 1997 05:41:29 +0000
parents ff5e05767bd3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
1 /* $Id: data.h,v 1.1.1.1 1997/12/06 05:41:28 darius Exp $ */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
2
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
3 /*
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
4 * data.h
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
5 */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
6
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
7 #ifndef data_h_
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
8 #define data_h_
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
9
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
10 #include "copyright.h"
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
11 #include "struct.h"
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
12 #include <stdio.h> /* for def of file */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
13 #ifdef hpux
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
14 #include <time.h>
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
15 #else
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
16 #include <sys/time.h>
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
17 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
18
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
19 #define EX_FRAMES 5
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
20 #define SBEXPVIEWS 7
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
21 #define NUMDETFRAMES 5 /* # frames in torp explosion */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
22 #define ex_width 64
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
23 #define ex_height 64
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
24 #define sbexp_width 80
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
25 #define sbexp_height 80
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
26 #define cloud_width 9
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
27 #define cloud_height 9
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
28 #define plasmacloud_width 13
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
29 #define plasmacloud_height 13
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
30 #define etorp_width 3
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
31 #define etorp_height 3
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
32 #define NDRONEVIEWS 16 /* dependent on oldbitmaps.h */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
33 #define drone_width 6
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
34 #define drone_height 6
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
35 #define fighter_width 5
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
36 #define fighter_height 5
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
37 #define warpbeacon_width 8
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
38 #define warpbeacon_height 12
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
39 #define eplasmatorp_width 7
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
40 #define eplasmatorp_height 7
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
41 #define mplasmatorp_width 5
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
42 #define mplasmatorp_height 5
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
43 #define mtorp_width 3
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
44 #define mtorp_height 3
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
45 #define crossmask_width 16
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
46 #define crossmask_height 16
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
47 #define planet_width 30
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
48 #define planet_height 30
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
49 #define wormhole_width 80
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
50 #define wormhole_height 80
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
51 #define terrain_width 20
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
52 #define terrain_height 20
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
53 #define mplanet_width 16
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
54 #define mplanet_height 16
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
55 #define cloak_width 20
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
56 #define cloak_height 20
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
57
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
58 extern int paradise; /* is the server a paradise server? */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
59 #ifdef HOCKEY
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
60 extern int hockey; /* is the server a hockey server [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
61 #endif /*HOCKEY*/
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
62
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
63 extern int nplayers;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
64 extern int nshiptypes;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
65 extern int ntorps;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
66 extern int npthingies;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
67 extern int ngthingies;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
68 extern int nplasmas;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
69 extern int nphasers;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
70 extern int nplanets;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
71
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
72 #ifdef HOCKEY
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
73 /* hockey stuff [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
74 extern int galacticHockeyLines; /* draw lines on the galactic? [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
75 extern int tacticalHockeyLines; /* draw lines on the tactical? [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
76 extern int cleanHockeyGalactic; /* don't draw planets on the galactic when
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
77 playing hockey [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
78 extern int teamColorHockeyLines; /* color hockey lines by team [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
79 extern struct hockeyLine hlines[NUM_HOCKEY_LINES];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
80 #endif /*HOCKEY*/
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
81
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
82 extern int metaFork; /* allow spawning off of clients from meta-
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
83 server window [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
84 extern int viewBox; /* flag for viewBox [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
85 extern int allowViewBox; /* allow flag for viewBox [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
86
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
87 extern int sectorNums; /* flag for numbered sectors in galactic -TH */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
88 extern int lockLine; /* for line from me to lock in galac -TH */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
89 extern int mapSort; /* use new sorting in galactic -TH */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
90 extern int autoSetWar; /* automatically set war dec's -TH */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
91 extern int tacPlanetInfo; /* info on local planets; see data.c -TH */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
92
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
93 #ifdef WIDE_PLIST
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
94 extern char *playerList; /* string of fields for wide playerlist */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
95 extern char *playerListStart; /* comma seperated set of strings for plist */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
96 extern int resizePlayerList;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
97 #endif /* WIDE_PLIST */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
98
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
99 #ifdef PACKET_LIGHTS
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
100 extern int packetLights; /* flag for packetLights [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
101 #endif /* PACKET_LIGHTS */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
102
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
103 /* for showgalactic and showlocal rotation sequence [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
104 extern char *showGalacticSequence, *showLocalSequence;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
105
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
106 /* Lynx wants the playerlist blanked upon entry. Ok, whatever [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
107 extern int allowPlayerlist;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
108
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
109 /* message window array [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
110 extern struct messageWin messWin[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
111
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
112 /* global counters for number of queued messages [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
113 extern int me_messages, all_messages, team_messages;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
114
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
115 /* added 1/94 -JR */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
116 extern int niftyNewMessages;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
117
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
118 /* needed for rc_distress [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
119 extern int F_gen_distress;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
120
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
121 extern struct dmacro_list *distmacro;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
122 extern struct dmacro_list dist_defaults[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
123 extern struct dmacro_list dist_prefered[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
124 extern int sizedist;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
125
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
126 #ifdef BEEPLITE
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
127 extern int F_allow_beeplite;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
128 extern unsigned char F_beeplite_flags;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
129
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
130 extern char *distlite[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
131 extern int UseLite;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
132 extern int DefLite;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
133 extern int emph_planet_seq_n[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
134 extern int emph_player_seq_n[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
135 extern W_Icon emph_planet_seq[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
136 extern W_Icon emph_player_seq[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
137 extern W_Icon emph_player_seql[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
138 extern W_Color emph_planet_color[MAX_PLANETS];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
139 extern W_Color emph_player_color[MAX_PLAYER];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
140 #define emph_planet_seq_frames 5
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
141 #define emph_planet_seq_width 24
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
142 #define emph_planet_seq_height 24
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
143 #define emph_player_seq_frames 3
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
144 #define emph_player_seq_width 24
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
145 #define emph_player_seq_height 24
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
146 #define emph_player_seql_frames 3
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
147 #define emph_player_seql_width 30
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
148 #define emph_player_seql_height 30
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
149 extern int beep_lite_cycle_time_player;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
150 extern int beep_lite_cycle_time_planet;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
151 #endif /* BEEPLITE */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
152
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
153 /* time client connected to server [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
154 extern time_t timeStart;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
155
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
156 #ifdef TIMER
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
157 /* timer data */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
158 extern int timerType;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
159 extern time_t timeBank[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
160 #endif /* TIMER */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
161
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
162 #ifdef MACROS
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
163 extern struct macro *macrotable[256];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
164 extern int macroState;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
165 extern char lastMessage[100];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
166 #endif /* MACROS */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
167
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
168 /* ghoststart data */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
169 extern int ghoststart;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
170 extern int ghost_pno;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
171
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
172 /* defaults list */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
173 extern struct stringlist *defaults;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
174
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
175 /* upgrade kludge flag [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
176 extern int upgrading;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
177
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
178 /* continuousmouse kludge [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
179 extern int exitInputLoop;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
180
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
181 /* clearzone data */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
182 extern int czsize;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
183 extern struct _clearzone *clearzone;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
184 extern int clearcount;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
185 #ifdef HOCKEY
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
186 extern int clearline[4][32 + 2 * 32 + NUM_HOCKEY_LINES];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
187 #else
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
188 extern int clearline[4][32 + 2 * 32];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
189 #endif /*HOCKEY*/
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
190 extern int clearlmark[2];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
191 extern int clearlmcount;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
192 extern int clearlcount;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
193 extern int mclearzone[6][32]; /* for map window */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
194
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
195 extern struct player *players;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
196 extern struct player *me;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
197 extern struct torp *torps;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
198 extern struct thingy *thingies;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
199 extern struct plasmatorp *plasmatorps;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
200 extern struct status *status;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
201 extern struct status2 *status2;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
202 extern struct ship *myship;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
203 extern struct shiplist *shiptypes;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
204 extern struct stats *mystats;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
205 extern struct planet *planets;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
206 extern struct t_unit *terrainInfo;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
207 extern int received_terrain_info;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
208 extern int terrain_x;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
209 extern int terrain_y;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
210 extern struct phaser *phasers;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
211 extern struct team *teams;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
212 extern struct planet pdata[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
213
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
214 extern int logPhaserMissed; /* log or not 'phaser missed' messages
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
215 [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
216 extern int phaserStats; /* Phaser statistics on or off -JR */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
217 extern int phasFired, phasHits, totalDmg; /* the stats */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
218
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
219 extern int infoIcon; /* information icon flag [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
220 extern int iconified; /* iconified or not flag [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
221 extern char *defaultsFile;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
222 extern short *slot;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
223 extern char *defNickName;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
224 extern char *defFlavor;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
225 extern int oldalert;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
226 /*extern int remap[];*/
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
227 extern int udcounter;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
228 extern char *title;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
229 extern char *cloakchars; /* characters used for cloakers, defaults to
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
230 ?? */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
231 extern int cloakcharslen;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
232 extern struct plupdate pl_update[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
233 extern int currentship;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
234 extern int messpend;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
235 extern int lastcount;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
236 extern int mdisplayed;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
237 extern int redrawall;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
238 extern int nopilot;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
239 extern int watch;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
240 extern int selfdest;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
241 extern int lastm;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
242 extern int delay;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
243 extern int rdelay;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
244 extern int mapmode;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
245 extern int namemode;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
246 extern int showShields;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
247 extern int showStats;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
248 #ifdef ATM
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
249 extern int msgBeep; /* ATM - msg beep */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
250 #endif /* ATM */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
251 extern int warncount;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
252 extern int warntimer;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
253 extern int infomapped;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
254 extern void *infothing; /* infow contents [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
255 extern int infoupdate; /* update flag for infow [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
256 extern int infotype; /* type of info thing [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
257 extern int keepInfo; /* .xtrekrc setting */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
258 extern int infowin_up; /* how long should it remain up? */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
259 #ifdef ATM
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
260 extern int scanmapped; /* ATM - scanner stuff */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
261 #endif /* ATM */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
262 extern int mustexit;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
263 extern int messtime;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
264 extern int keeppeace;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
265 extern int drawgrid;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
266
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
267 /* playerlist settings */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
268 extern int sortPlayers;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
269 extern int hideNoKills;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
270 extern int showDead;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
271 extern int showPreLogins;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
272 extern int sortOutfitting;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
273 extern int robsort;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
274
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
275 /* dashboard settings */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
276 extern int Dashboard;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
277 extern int newDashboard;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
278 extern int cup_half_full;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
279
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
280 extern int logmess;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
281 extern char *logFile;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
282 extern FILE *logfilehandle;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
283 extern int showPhaser;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
284 extern int vary_hull;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
285 extern int warpStreaks;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
286 extern int fastQuit;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
287 extern int pigSelf;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
288 #ifdef CONTINUOUS_MOUSE
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
289 extern int continuousMouse;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
290 extern int allowContinuousMouse;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
291 extern int clickDelay;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
292 /* turns on and off continuousMouse for each button [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
293 extern int buttonRepeatMask;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
294 #endif /* CONTINUOUS_MOUSE */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
295 extern int autoQuit;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
296
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
297 #ifdef GATEWAY
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
298 extern unsigned long netaddr; /* for blessing */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
299 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
300
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
301 #ifdef NOWARP
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
302 extern int messageon;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
303 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
304
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
305 extern char blk_refitstring[80];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
306 extern int blk_gwidth;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
307 extern float blk_windgwidth;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
308 /*extern int blk_altbits;*/
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
309 extern int showKitchenSink;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
310 extern int blk_showStars;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
311 extern int blk_bozolist;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
312 extern int blk_friendlycloak;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
313
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
314 extern int forceMono;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
315
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
316 extern int showlocal, showgalactic;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
317 extern int sendmotdbitmaps;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
318 extern char *shipnos;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
319 extern int sock;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
320 extern int xtrekPort;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
321 extern int queuePos;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
322 extern int pickOk;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
323 extern int lastRank;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
324 extern int promoted;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
325 extern int loginAccept;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
326 extern unsigned localflags;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
327 extern int tournMask;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
328 extern int nextSocket;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
329 extern int updatePlayer[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
330 extern char *serverName;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
331 extern int loggedIn;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
332 extern int reinitPlanets;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
333 extern int redrawPlayer[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
334 extern int lastUpdate[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
335 extern int timerDelay;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
336 extern int reportKills;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
337 extern char *unixSoundPath;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
338 extern char *unixSoundDev;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
339 extern int playSounds;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
340
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
341 #ifdef ATM
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
342 extern int scanplayer;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
343 extern int showTractor;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
344 extern int commMode; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
345 extern int commModeReq; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
346 extern int commStatus; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
347 extern int commSwitchTimeout; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
348 extern int udpTotal; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
349 extern int udpDropped; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
350 extern int udpRecentDropped; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
351 extern int udpSock; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
352 extern int udpDebug; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
353 extern int udpClientSend; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
354 extern int udpClientRecv; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
355 extern int udpSequenceChk; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
356 extern int updateSpeed;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
357
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
358 #ifdef METASERVER
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
359 /* metaserver window stuff */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
360 extern int usemeta;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
361 extern char *metaserverAddress;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
362 #endif /* METASERVER */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
363
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
364 /* MOTD data */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
365 extern struct page *currpage;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
366 extern struct page *motddata;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
367
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
368 #ifdef GATEWAY
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
369 extern int gw_serv_port, gw_port, gw_local_port; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
370 extern char *gw_mach; /* UDP */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
371 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
372 #endif /* ATM */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
373
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
374 extern int showMySpeed;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
375 extern int showTractorPressor;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
376 extern int showAllTractorPressor;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
377 extern int allowShowAllTractorPressor;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
378 extern int showLock;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
379 extern int autoKey;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
380 extern int extraBorder;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
381 #ifdef ATM
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
382 /* udp options */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
383 extern int tryUdp;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
384 #endif /* ATM */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
385
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
386
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
387 extern double Sin[], *Cos;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
388
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
389 extern W_Icon stipple, clockpic, icon;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
390 /*extern W_Icon teamicon[4];*/
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
391
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
392 #define VIEWS 16
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
393 extern W_Icon expview[EX_FRAMES];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
394 extern W_Icon sbexpview[SBEXPVIEWS];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
395 extern W_Icon cloud[NUMDETFRAMES];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
396 extern W_Icon plasmacloud[NUMDETFRAMES];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
397 extern W_Icon etorp, mtorp;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
398 extern W_Icon drone_bm[16];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
399 extern W_Icon eplasmatorp, mplasmatorp, fighter[VIEWS];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
400 extern W_Icon warpbeacon, wbflash;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
401 extern W_Icon hull[8];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
402
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
403 extern W_Icon cloakicon;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
404
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
405 #ifdef ATM
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
406 extern W_Icon tractbits, pressbits;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
407 #endif /* ATM */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
408
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
409 #define NEW_SHIP_BM
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
410
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
411 struct ship_shape *shape_of_ship( /* team, class */ );
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
412
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
413 /**************************/
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
414 /* stellar object bitmaps */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
415 /*
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
416 b tactical owner
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
417 mb galactic owner
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
418 b2 tactical resources
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
419 mb2 galactic resources
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
420 */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
421
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
422 #define STARFRAMES 10
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
423 #define WORMFRAMES 8
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
424
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
425 extern W_Icon starBM[STARFRAMES], mstarBM;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
426 extern W_Icon wormBM[WORMFRAMES];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
427 extern W_Icon mholeBM; /* wormhole galactic bitmap [BDyess] */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
428
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
429 extern W_Icon bplanets[6]; /* TS "show owner" mode bitmaps */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
430 extern W_Icon mbplanets[6]; /* GS "show owner" mode bitmaps */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
431 extern W_Icon bplanets2[16]; /* TS "show facilities" mode bitmaps */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
432 extern W_Icon mbplanets2[16]; /* GS "show facilities" mode bitmaps */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
433 extern W_Icon bplanetsr[8]; /* TS "show resources" mode bitmaps */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
434 extern W_Icon mbplanetsr[8]; /* GS "show resources" mode bitmaps */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
435 extern W_Icon bplanetsMOO[16]; /* TS MOO-style bitmaps */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
436 extern W_Icon mbplanetsMOO[16]; /* GS MOO-style bitmaps */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
437 #define NSCOUTAGES 5
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
438 extern W_Icon mbplanetsA[NSCOUTAGES]; /* GS "show age" mode bitmaps */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
439
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
440 extern W_Icon basteroid[6];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
441 extern W_Icon mbasteroid[6];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
442 extern W_Icon basteroid2[2];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
443 extern W_Icon mbasteroid2[2];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
444 extern W_Icon asteroidBM[16];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
445 extern W_Icon asteroidfluff[3]; /* for "smoothness" */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
446
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
447 extern W_Icon kitchenSink;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
448
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
449 extern W_Color borderColor, backColor, textColor, myColor, warningColor, shipCol[6],
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
450 rColor, yColor, gColor, unColor, foreColor;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
451
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
452 /*extern char teamletdata[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
453 extern char *teamshortdata[];*/
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
454 extern char pseudo[PSEUDOSIZE];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
455 extern char defpasswd[PSEUDOSIZE];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
456 extern char login[PSEUDOSIZE];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
457
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
458 extern struct rank ranks[NUMRANKS];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
459 extern struct rank2 *ranks2;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
460 extern struct royalty *royal;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
461 extern int nranks2;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
462 extern int nroyals;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
463
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
464 extern W_Window messagew, w, mapw, statwin, baseWin, infow, iconWin, tstatw, war,
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
465 warnw, helpWin, teamWin[4], qwin, /* messwa, messwt, messwi,
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
466 messwk, */ planetw, planetw2, rankw, playerw, optionWin, /* reviewWin, phaserwin, */ metaWin,
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
467 macroWin, defWin, motdWin;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
468 #ifdef ATM
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
469 extern W_Window scanw, scanwin, udpWin;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
470 #endif /* ATM */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
471
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
472 #ifdef SHORT_PACKETS
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
473 extern W_Window spWin;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
474 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
475
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
476 #ifdef TOOLS
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
477 extern W_Window toolsWin;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
478 extern int shelltools;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
479
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
480 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
481
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
482 #ifdef SOUND
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
483 extern W_Window soundWin;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
484 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
485
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
486 #ifdef ROTATERACE
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
487 extern int rotate;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
488 extern int rotate_deg;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
489 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
490
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
491 #ifdef NOWARP
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
492 extern int messageon;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
493 extern int warp;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
494 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
495
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
496 extern int RSA_Client;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
497 extern int blk_zoom;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
498 extern int autoZoom, autoUnZoom, auto_zoom_timer, autoZoomOverride;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
499
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
500 extern int use_msgw;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
501
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
502 extern int show_shield_dam;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
503 extern int bd; /* BORG TEST */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
504
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
505
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
506 #ifdef SHORT_PACKETS
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
507 extern int tryShort;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
508 extern int recv_short;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
509 extern int recv_mesg;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
510 extern int recv_kmesg;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
511 extern int recv_threshold;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
512 extern char recv_threshold_s[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
513 extern int recv_warn;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
514 extern int godToAllOnKills;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
515 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
516
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
517 /* ping client stuff, ick */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
518 extern int ping; /* to ping or not to ping */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
519 extern long packets_sent; /* # all packets sent to server */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
520 extern long packets_received; /* # all packets received */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
521 extern W_Window pStats;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
522
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
523 extern int lowercaset;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
524
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
525 extern char *agriWord;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
526
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
527 #ifdef DNET
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
528 extern unsigned long sigsPending, sockMask, udpSockMask;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
529 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
530
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
531 #ifdef FEATURE
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
532 extern int F_feature_packets;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
533 extern int why_dead;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
534 extern int cloakerMaxWarp;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
535 extern int F_dead_warp;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
536 extern int F_multiline_enabled;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
537 extern int F_UseNewMacro;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
538 extern int F_terrain;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
539 extern unsigned char F_terrain_major;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
540 extern unsigned char F_terrain_minor;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
541 extern int F_gz_motd;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
542 extern unsigned char F_gz_motd_major;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
543 extern unsigned char F_gz_motd_minor;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
544 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
545
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
546 #ifdef CHECK_DROPPED
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
547 extern int reportDroppedPackets;/* report on various dropped packet kludges */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
548 extern int longest_ph_fuse;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
549 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
550
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
551 #ifdef UPDATE_SIZES
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
552 extern int totalbytes;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
553 extern int updatebytes, alivebytes;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
554 extern int peakbytes;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
555 extern int packetbytes[100];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
556 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
557
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
558 extern int askforUpdate;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
559
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
560 extern int jubileePhasers;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
561
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
562 extern int scrollBeep;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
563
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
564 #ifdef RECORDER
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
565 extern int recordGame;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
566 extern char *recordFile;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
567 extern int maxRecord;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
568
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
569 extern int playback;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
570 extern char *playFile;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
571 extern int pb_update, paused, pb_advance, pb_scan, pb_slow;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
572 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
573
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
574 #ifdef COW_HAS_IT_WHY_SHOULDNT_WE
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
575 extern int showMapAtMotd;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
576 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
577
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
578 extern int redrawDelay;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
579
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
580 #ifdef LOCAL_SHIPSTATS
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
581 extern int localShipStats;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
582 extern char *statString;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
583 extern int statHeight, localStatsX, localStatsY;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
584 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
585
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
586 #ifdef SHOW_IND
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
587 extern int showIND;
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
588 #endif
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
589
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
590 /* char[] containing the client version */
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
591
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
592 extern char CLIENTVERS[];
ff5e05767bd3 Empty changelog
darius
parents:
diff changeset
593 #endif