forked from hyperyoda/netrek-client-brmh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.h
429 lines (361 loc) · 9.76 KB
/
data.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
#ifndef _data_h_
#define _data_h_
/*
* data.h
*
* $Log: data.h,v $
* Revision 1.2 2000/02/17 05:48:05 ahn
* BRMH 2.3 from David Pinkney <[email protected]>
*
* Revision 1.6 1993/10/05 16:40:38 hadley
* checkin
*
* Revision 1.6 1993/10/05 16:38:08 hadley
* checkin
*
*/
#include "copyright.h"
#define EX_FRAMES 5
#define SBEXPVIEWS 7
#define NUMDETFRAMES 5 /* # frames in torp explosion */
#define ex_width 64
#define ex_height 64
#define sbexp_width 80
#define sbexp_height 80
#define cloud_width 9
#define cloud_height 9
#define plasmacloud_width 13
#define plasmacloud_height 13
#define etorp_width 3
#define etorp_height 3
#define eplasmatorp_width 7
#define eplasmatorp_height 7
#define mplasmatorp_width 5
#define mplasmatorp_height 5
#define mtorp_width 3
#define mtorp_height 3
#define crossmask_width 16
#define crossmask_height 16
#define planet_width 30
#define planet_height 30
#define mplanet_width 16
#define mplanet_height 16
#define shield_width 20
#define shield_height 20
#define cloak_width 20
#define cloak_height 20
#define icon_width 112
#define icon_height 80
extern struct player *players;
extern struct player *me;
extern struct torp *torps;
extern struct plasmatorp *plasmatorps;
extern struct status *status;
extern struct ship *myship;
extern struct stats *mystats;
extern struct planet *planets;
extern struct phaser *phasers;
extern struct message *messages;
extern struct mctl *mctl;
extern struct team *teams;
extern struct memory universe;
extern unsigned char *mykeymap;
extern unsigned char *keymaps[NUM_TYPES+1];
extern struct planet pdata[];
extern char *display;
extern int fastQuit;
extern int fastQuitOk;
extern int oldalert;
extern int remap[];
extern int udcounter;
extern char *title;
extern struct plupdate pl_update[];
extern char buttonmap[];
extern int extended_mouse;
extern int messpend;
extern int lastcount;
extern int mdisplayed;
extern int redrawall;
extern int nopilot;
extern int watch;
extern int selfdest;
extern int lastm;
extern int delay;
extern int rdelay;
extern int mapmode;
extern int namemode;
extern int showShields;
extern int showStats;
extern int msgBeep; /* ATM - msg beep */
extern int warncount;
extern int warntimer;
extern int infomapped;
#ifdef SCAN
extern int scanmapped; /* ATM - scanner stuff */
#endif /* ATM */
extern int mustexit;
extern int messtime;
extern int keeppeace;
#ifdef GATEWAY
extern unsigned long netaddr; /* for blessing */
extern char *serverNameRemote;
#endif
extern int messageon;
extern int warp;
#ifdef NBT
extern struct macro_list macro[]; /* NBT 2/26/93 */
extern int MacroMode;
extern int macrocnt;
#endif
#ifdef NBTDIST
extern struct distress_list distress[];
#endif
#ifdef ROTATERACE
extern int rotate;
extern int rotate_deg;
#endif
#ifdef NETSTAT
extern int netstat;
extern int netstatfreq;
extern W_Window netstatWin, lMeter;
#endif
extern int showlocal, showgalactic;
extern char *shipnos;
extern int sock;
extern int xtrekPort;
extern int queuePos;
extern int pickOk;
extern int lastRank;
extern int promoted;
extern int loginAccept;
extern unsigned localflags;
extern int tournMask;
extern int nextSocket;
extern int updatePlayer[];
extern char *serverName;
extern char *serverAlias;
extern int loggedIn;
extern int reinitPlanets;
extern int redrawPlayer[];
extern int lastUpdate[];
extern int timerDelay;
extern int updates_per_second;
extern int reportKills;
extern int reportKillsInReview;
extern int reportAllInReview;
extern int reportTeamInReview;
extern int reportIndInReview;
extern int reportPhaserInReview;
extern int phaserWindow;
#ifdef LOGMESG
extern FILE *logFile;
extern char *logFileName;
extern int logMess;
#endif
extern int sortPlayers;
extern int sortPlayersObs;
extern int teamOrder; /* DBP */
#ifdef MOOBITMAPS
extern int myPlanetBitmap;
#endif
extern int continueTractor;
extern int scanplayer;
extern int showTractor;
extern int commMode; /* UDP */
extern int commModeReq; /* UDP */
extern int commStatus; /* UDP */
extern int commSwitchTimeout; /* UDP */
extern int udpTotal; /* UDP */
extern int udpDropped; /* UDP */
extern int udpRecentDropped; /* UDP */
extern int udpSock; /* UDP */
extern int udpDebug; /* UDP */
extern int udpClientSend; /* UDP */
extern int udpClientRecv; /* UDP */
extern int udpSequenceChk; /* UDP */
#ifdef GATEWAY
extern int gw_serv_port, gw_port, gw_local_port; /* UDP */
extern char *gw_mach; /* UDP */
#endif
extern int showTractorPressor;
extern int showLock;
extern int autoKey;
extern int extraBorder;
extern int fillTriangle;
/* udp options */
extern int tryUdp;
extern int debug;
extern double Sin[], Cos[];
extern W_Icon stipple, clockpic, icon;
#define VIEWS 16
#ifdef GALAXY
#define NUM_TYPES 8
#else
#define NUM_TYPES 7
#endif /* GALAXY */
extern W_Icon expview[EX_FRAMES];
extern W_Icon sbexpview[SBEXPVIEWS];
extern W_Icon cloud[NUMDETFRAMES];
extern W_Icon plasmacloud[NUMDETFRAMES];
extern W_Icon etorp, mtorp;
extern W_Icon eplasmatorp, mplasmatorp;
#define SHIELD_FRAMES 5
extern W_Icon shield[SHIELD_FRAMES], cloakicon;
extern int VShieldBitmaps;
#ifndef DYNAMIC_BITMAPS
extern W_Icon fed_bitmaps[NUM_TYPES][VIEWS], kli_bitmaps[NUM_TYPES][VIEWS], rom_bitmaps[NUM_TYPES][VIEWS], ori_bitmaps[NUM_TYPES][VIEWS], ind_bitmaps[NUM_TYPES][VIEWS];
#else
#include "bitmapstuff.h"
extern W_Icon ship_bitmaps[NUM_BITMAP_TYPES][VIEWS];
#endif
#ifdef HOCKEY
extern W_Icon puck_bitmaps[VIEWS];
#endif
/* ISAE: use #define */
extern W_Icon bplanets[NUM_PLANET_BITMAPS];
extern W_Icon mbplanets[NUM_PLANET_BITMAPS];
extern W_Icon bplanets2[NUM_PLANET_BITMAPS2];
extern W_Icon mbplanets2[NUM_PLANET_BITMAPS2];
#ifdef MOOBITMAPS
extern W_Icon bplanets3[NUM_PLANET_BITMAPS2]; /* isae: added this */
extern W_Icon mbplanets3[NUM_PLANET_BITMAPS2]; /* isae: added this */
#endif /* MOOBITMAPS */
extern W_Color borderColor, backColor, textColor, myColor, warningColor,
shipCol[5], rColor, yColor, gColor, unColor, foreColor;
extern char lastMessage[100];
extern char *classes[];
extern char teamlet[];
extern char *teamshort[];
extern char pseudo[PSEUDOSIZE];
extern char login[PSEUDOSIZE];
#ifdef AUTOLOGIN
extern char defpasswd[PSEUDOSIZE];
extern int autologin;
#endif
extern struct ship shipvals[NUM_TYPES];
extern struct rank ranks[NUMRANKS];
extern W_Window messagew, w, mapw, statwin, baseWin, infow, iconWin, tstatw, war,
warnw, helpWin, teamWin[4], quitwin, messwa, messwt, messwi, messwk,
planetw, rankw, playerw, optionWin, reviewWin, waitWin, metaWin;
#ifdef XTREKRC_HELP
extern W_Window defWin;
#endif
#ifdef SCAN
extern W_Window scanw, scanwin;
#endif /* ATM */
extern W_Window udpWin;
extern W_Window phaserwin;
extern W_Window motdWin;
#ifdef SHORT_PACKETS
extern W_Window spWin;
#endif
#ifdef EM
extern int sortPlayers;
extern int sortPlayersObs;
#endif
#ifdef CURSORFIX
#define MAXCURSORS 10
#define MESGCURSOR 1
#define TMAPCURSOR 2
#define GMAPCURSOR 2 /* note these are the same! */
#endif
#ifdef PING
extern int no_ping; /* to ping or not to ping */
extern int ping; /* to ping or not to ping */
extern long packets_sent; /* # all packets sent to server */
extern long packets_received; /* # all packets received */
extern W_Window pStats;
#endif
extern int use_msgw;
extern int phas_msgi;
/* tmp */
#ifdef BD
extern int bd;
#endif
#ifdef SHORT_PACKETS
extern int tryShort;
extern int recv_short;
extern int recv_short_opt;
/* OLD */
extern int recv_mesg;
extern int recv_kmesg;
extern int recv_threshold;
extern char recv_threshold_s[];
extern int recv_warn;
extern int shortversion;
#endif
extern int tclock;
extern int alt_playerlist;
extern int new_messages;
extern int max_fd;
#ifdef FEATURE
extern int MacroNum;
extern int F_UseNewMacro;
extern int F_UseSmartMacro;
extern int F_server_feature_packets;
extern int F_why_dead;
extern int F_cloak_maxwarp;
extern int F_self_8flags;
extern int F_self_8flags2;
extern int F_motd_bitmaps;
extern W_Window macroWin;
extern int macrokey;
extern int F_gen_distress;
extern char *singleMacro;
extern int F_phaser_multi_send;
extern int F_ship_cap;
extern int F_fps;
extern int F_ups;
extern int F_tips;
#endif
extern int abbr_kmesg;
#endif
extern int maskrecip;
extern int dashboardStyle;
extern int plshowstatus;
extern char cloakChars[3];
extern int showInd;
extern int stippleBorder;
extern int showPlanetOwner;
extern int enemyPhasers;
extern int newInfo;
#ifdef TTS
#define TTS_TIME 25
extern int tts;
extern int tts_len;
extern int tts_max_len;
extern int tts_width;
extern int tts_loc;
extern int tts_timer;
extern int tts_time;
extern char lastIn[100];
#endif
#ifdef DROP_FIX
extern int drop_fix;
#endif
#ifdef MULTILINE_MACROS
extern int multiline_enabled;
#endif
extern int motd_line;
extern int motdw_line;
extern char puck_name[PSEUDOSIZE];
extern char puck_host[PSEUDOSIZE];
#ifdef PHASER_SHRINK
extern int shrink_phasers;
extern int shrink_phasers_amount;
#endif
extern char *defaults_file;
extern char *metaserver;
extern int metaport;
extern char *plist;
extern int list_needs_stats;
extern char *program;
#ifdef FORKNETREK
extern int waitnum;
#endif
extern int non_obscure;
extern int observ;
extern int basetime;
extern int torprepeat;
extern int last_torp;
extern int cloak_phases;