-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconfig.h
43 lines (38 loc) · 783 Bytes
/
config.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
#ifndef _CONFIG_H_
#define _CONFIG_H_
#define CONFIG_EXTRAPOINTS_OFF 0
#define CONFIG_EXTRAPOINTS_RANDOM 1
#define CONFIG_EXTRAPOINTS_OLDEST 2
#define CONFIG_EXTRAPOINTS_BEST 3
typedef struct
{
int maxPlayers;
int numPlanets;
int numShots;
double rate;
double limit;
int fullscreen;
double battlefieldW;
double battlefieldH;
double playerSize;
int margin;
char* ip;
char* message;
int extrapoints;
int numDebrisParticles;
double debrisSpeed;
char sendPlanets;
/* debug options */
int fastmode;
int throttle;
int debug;
int pot;
int area;
/* fixed */
int maxSegments;
int segmentSteps;
int roundTime;
} Config;
extern Config conf;
void config(int* argc, char** argv);
#endif /* _CONFIG_H_ */