forked from andbof/yastg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.h
More file actions
64 lines (53 loc) · 924 Bytes
/
data.h
File metadata and controls
64 lines (53 loc) · 924 Bytes
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
#ifndef _HAS_DATA_H
#define _HAS_DATA_H
#include "planet.h"
#include "base.h"
#define PLANET_TYPE_N 19
#define PLANET_LIFE_DESC_LEN 25
#define BASE_TYPE_N 1
enum planet_zone {
HOT,
ECO,
COLD,
PLANET_ZONE_NUM
};
enum planet_life {
TOXIC,
BARREN,
DEAD,
SINGLECELL,
BACTERIA,
SIMPLE,
RESISTANT,
COMPLEX,
ANIMAL,
INTELLIGENT,
LIFE_NUM
};
struct planet_type {
char c;
char *name;
char *desc;
char *surface;
char *atmo;
int zones[PLANET_ZONE_NUM];
unsigned int mindia, maxdia; /* In hundreds of kilometres */
enum planet_life minlife, maxlife;
int bases[BASE_TYPE_N];
};
enum base_zone {
OCEAN,
SURFACE,
ORBIT,
ROGUE,
BASE_ZONE_NUM
};
struct base_type {
char *name;
char *desc;
int zones[BASE_ZONE_NUM];
};
extern struct planet_type planet_types[PLANET_TYPE_N];
extern const char planet_life_desc[LIFE_NUM][PLANET_LIFE_DESC_LEN];
extern struct base_type base_types[BASE_TYPE_N];
#endif