-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathTipos.h
68 lines (46 loc) · 1.05 KB
/
Tipos.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
#define LARG_GRAFICO 297
#define CHAO_QUANTIDADE 10
#define QTD_SPRITE_CACTUS 6
#define QTD_OBSTACULOS 6
#define QTD_NUVEM 3
#define QTD_PREDIO 3
#define QTD_ARVORE 3
typedef struct passaros
{
double X, Y;
double VelocidadeY;
double Angulo;
Sprite* sprite[QTD_SPRITES_BIRDS];
int SpriteAtual;
int Estado;
int TimerFrame;
int ResetarFitness;
int TamanhoDNA;
double* DNA;
double Fitness;
RedeNeural* Cerebro;
double ParaquedasCooldown;
} Passaros;
typedef struct obstaculo
{
double X, Y;
double Vy;
double AmplitudeMaxima;
double AmplitudeAtual;
Sprite* sprite;
} Obstaculo;
typedef struct chao
{
double X, Y;
Sprite* sprite;
} Chao;
typedef struct grafico
{
double MediaFitness[LARG_GRAFICO];
double MelhorFitness[LARG_GRAFICO];
} Grafico;
typedef struct enfeite
{
double X, Y;
Sprite* sprite;
} Enfeite;