comparison src/daemonII.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 <setjmp.h>
20
21
22
23
24
25 /*-------------------------------NUMBER DEFINES-----------------------------*/
26 #define TOURNEXTENSION 15 /* Tmode gone for 15 seconds 8/26/91 TC */
27
28 #define PLAYERFUSE 1
29 #define TORPFUSE 1
30 #define MISSILEFUSE 1
31 #define PLASMAFUSE 1
32 #define PHASERFUSE 1
33 #define CLOAKFUSE 2
34 #define TEAMFUSE 5
35 #define PLFIGHTFUSE 5
36 #define TERRAINFUSE 1
37 #define BEAMFUSE 8 /* scott 8/25/90 -- was 10 */
38 #define PLANETFUSE SECONDS(15) /* every 15 seconds */
39 #define MINUTEFUSE MINUTES(1) /* 1 minute, surrender funct etc.
40 * 4/15/92 TC */
41 #define SYNCFUSE MINUTES(5)
42 #define CHECKLOADFUSE MINUTES(15) /* change 1/26/91 -- was 600 */
43 #define HOSEFUSE MINUTES(20) /* 20 min., was 15 minutes 6/29/92 TC */
44 #define HOSEFUSE2 MINUTES(5) /* 5 min., was 3 minutes 6/29/92 TC */
45
46 #define GHOSTTIME SECONDS(30) /* 30 secs */
47 #define OUTFITTIME SECONDS(6 * AUTOQUIT) /* 6 * AQ secs */
48
49 #define HUNTERKILLER (-1)
50 #define TERMINATOR (-2) /* Terminator */
51 #define STERMINATOR (-3) /* sticky Terminator */
52 /*--------------------------------------------------------------------------*/
53
54
55
56
57
58
59 /*---------------------------------MACROS-----------------------------------*/
60
61 #define FUSE(X) ((ticks % (X)) == 0)
62
63 #define NotTmode(X) (!(status->tourn) && ((X - tourntimestamp)/10 > TOURNEXTENSION))
64
65 /*--------------------------------------------------------------------------*/
66
67
68
69
70
71
72 /*----------------------------MODULE VARIABLES------------------------------*/
73
74 #ifndef DAEMONII /* only declare if not in daemonII.c */
75 extern int tcount[MAXTEAM + 1];
76 extern int ticks;
77 extern int tm_robots[MAXTEAM + 1]; /* To limit the number of robots */
78 extern int tourntimestamp; /* ticks since last Tmode 8/2/91 TC */
79 extern char *teamVerbage[9];
80 extern jmp_buf env;
81 extern int dietime;
82 extern plfd, glfd;
83 #endif
84
85 /*--------------------------------------------------------------------------*/
86
87
88
89
90
91 /*----------END OF FILE--------*/