forked from EcoSimIBM/EcoSim-Default
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.h
114 lines (101 loc) · 1.71 KB
/
structs.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
#ifndef STRUCTS_H
#define STRUCTS_H
# define COMPRESS_LEVEL 6
typedef struct {
int v1;
char* st1;
} Gen;
typedef struct {
int v1;
char* st1;
int v2;
char* st2;
} SpecExt;
typedef struct {
long id;
short x;
short y;
float energy;
short age;
short maxage;
float speed;
float distEvol;
short actionOffset;
int specId;
short reprodFail1;
float reprodFail2;
float reprodFail3;
float reprodFail4;
float reprodFail5;
short trans;
}CurrIndv;
typedef struct {
long id;
short x;
short y;
float energy;
short age;
int specId;
short trans;
}CurrIndv_C;
typedef struct {
long id;
short x;
short y;
float energy;
short age;
short maxage;
float speed;
float distEvol;
int specId;
int specP1Id;
int specP2Id;
long parent1Id;
long parent2Id;
short gender;
}NewIndv;
typedef struct {
long id;
short x;
short y;
float energy;
short age;
int specId;
int specP1Id;
int specP2Id;
long parent1Id;
long parent2Id;
short gender;
}NewIndv_C;
typedef struct {
long id;
short x;
short y;
float energy;
short age;
short maxage;
float speed;
float distEvol;
short actionOffset;
short lastAction;
int specId;
int specP1Id;
int specP2Id;
long parent1Id;
long parent2Id;
short conceptIndex;
float conceptMultiplier;
short gender;
short persuasion;
}Indv;
typedef struct {
int specId;
long id;
short deathType;
short lastAction;
short age;
float distEvol;
float energy;
float speed;
}DeadIndv;
#endif // STRUCTS_H