comparison src/data.h @ 2:2719a89505ba

First entry of Paradise Server 2.9 patch 10 Beta
author darius
date Sat, 06 Dec 1997 04:37:01 +0000
parents
children
comparison
equal deleted inserted replaced
1:4d6502ffaa5e 2:2719a89505ba
1 /*--------------------------------------------------------------------------
2 NETREK II -- Paradise
3
4 Permission to use, copy, modify, and distribute this software and its
5 documentation, or any derivative works thereof, for any NON-COMMERCIAL
6 purpose and without fee is hereby granted, provided that this copyright
7 notice appear in all copies. No representations are made about the
8 suitability of this software for any purpose. This software is provided
9 "as is" without express or implied warranty.
10
11 Xtrek Copyright 1986 Chris Guthrie
12 Netrek (Xtrek II) Copyright 1989 Kevin P. Smith
13 Scott Silvey
14 Paradise II (Netrek II) Copyright 1993 Larry Denys
15 Kurt Olsen
16 Brandon Gillespie
17 --------------------------------------------------------------------------*/
18
19 #include "defs.h"
20
21 #define SBEXPVIEWS 7
22
23 extern char *argv0;
24
25 extern struct player *me;
26 extern struct ship *myship;
27 extern struct stats *mystats;
28
29 extern int oldalert;
30 extern int remap[];
31 extern int selfdest;
32 extern int lastm;
33 extern int delay;
34 extern int rdelay;
35 extern int mustexit;
36 extern int keeppeace;
37 extern char *shipnos;
38 extern int sock;
39 extern int xtrekPort;
40 extern int shipPick;
41 extern int tmpPick;
42 extern int teamPick;
43 extern int repCount;
44 extern char namePick[];
45 extern char passPick[];
46 extern int inputMask;
47 extern int nextSocket;
48 extern char *host;
49 extern int noressurect;
50 extern int userVersion, userUdpVersion;
51 extern int timerDelay;
52 extern char testdata[];
53 extern int RSA_Client;
54 extern char RSA_client_type[256]; /* LAB 4/1/93 */
55 extern int testtime;
56 extern char *galaxyValid;
57
58 #ifdef FEATURE /* plus defaults, to protect client */
59 extern int F_feature_packets; /* allow feature packets */
60 extern int F_allowViewBox; /* allow view box */
61 extern int F_allowShowAllTractorPressor; /* allow all tracts/presses */
62 extern int F_allowContinuousMouse; /* allow continuous mouse */
63 extern int F_UseNewMacro; /* allow new macros */
64 extern int F_UseSmartMacro; /* Allow smart macros */
65 extern int F_multiline_enabled; /* Allow multiline macros */
66 extern int F_why_dead; /* Allow why_dead reporting */
67 extern int F_cloakerMaxWarp; /* Allow cloaker to go maxwarp */
68 extern int F_gen_distress; /* No RCDs (not yet implemented in server) */
69 extern int F_allow_beeplite; /* No RCDs ==> no allowed beeplite */
70 extern unsigned char F_beeplite_flags; /* flags for beeplite */
71 extern int F_terrain; /* Client isn't capable of terrain by default */
72 extern unsigned char F_terrain_major; /* Major terrain version client can
73 * handle */
74 extern unsigned char F_terrain_minor; /* Minor terrain version client can
75 * handle */
76 extern int F_gz_motd; /* Client can't handle GZipped MOTD packets */
77 extern unsigned char F_gz_motd_major; /* Major gzipped format client can
78 * handle */
79 extern unsigned char F_gz_motd_minor; /* Minor gzipped format client can
80 * handle */
81 #endif
82
83 /* extern char *serverName; not needed 8/1/92 TC */
84
85 extern int chaos;
86 extern int topgun; /* added 12/9/90 TC */
87 extern int hourratio;
88 extern int blk_flag; /* added 1/19/93 KAO */
89
90 extern int udpSock; /* UDP */
91 extern int commMode; /* UDP */
92 extern int blk_metaserver;
93
94 extern double oldmax;
95 extern double Sin[], Cos[];
96
97 #define VIEWS 16
98 extern char pseudo[PSEUDOSIZE];
99 extern char login[PSEUDOSIZE];
100
101 extern struct rank ranks[NUMRANKS];
102 extern struct royalty royal[NUMROYALRANKS];
103
104
105 /* returns a pointer to its static data */
106 char *build_path( /* char* */ );
107
108 extern int ping;
109 extern long packets_sent;
110 extern long packets_received;
111 extern int ping_ghostbust;
112 #if 0
113 extern int ping_freq;
114 extern int ping_iloss_interval;
115 extern int ping_allow_ghostbust;
116 extern int ping_ghostbust_interval;
117 #endif
118
119
120 /*
121 * miscellaneous string constants that don't need to be scattered all over
122 * the place
123 */
124
125 extern char *PARAVERS;
126 extern char MCONTROL[];
127 extern char UMPIRE[];
128 extern char MSERVA[];
129 extern char SERVNAME[];