-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.h
146 lines (133 loc) · 3.45 KB
/
constants.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#pragma once
#include "MyVector.h"
extern const int GRID_WIDTH;
extern const int GRID_HEIGHT;
extern const float GRID_SIZE;
extern const int CYCLE_TIME;
extern const int SLOW_TIME;
extern const int UNIT_COOLDOWN;
extern const int UNIT_MAX;
extern const float GOAL_X;
extern const float GOAL_Z;
extern const float START_X;
extern const float START_Z;
extern bool RAND_SEEDED;
extern const float P1_POSX;
extern const float P1_POSY;
extern const float P1_POSZ;
extern const float OPP_POSX;
extern const float OPP_POSY;
extern const float OPP_POSZ;
extern const float OPP_POSX2;
extern const float OPP_POSY2;
extern const float OPP_POSZ2;
//#define VTD_SOUND //Enables sounds
namespace unit_cost{
extern const int BASIC;
extern const int FAST;
extern const int FAST2;
extern const int STRONG;
extern const int STRONG2;
extern const int STRONG3;
extern const int BOSS;
}
namespace unit_bonus{
extern const int BASIC;
extern const int FAST;
extern const int FAST2;
extern const int STRONG;
extern const int STRONG2;
extern const int STRONG3;
extern const int BOSS;
}
namespace unit_health{
extern const int BASIC;
extern const int FAST;
extern const int FAST2;
extern const int STRONG;
extern const int STRONG2;
extern const int STRONG3;
extern const int BOSS;
}
namespace unit_speed{
extern const double BASIC;
extern const double FAST;
extern const double FAST2;
extern const double STRONG;
extern const double STRONG2;
extern const double STRONG3;
extern const double BOSS;
}
namespace unit_name {
extern const char* BASIC;
extern const char* FAST;
extern const char* FAST2;
extern const char* STRONG;
extern const char* STRONG2;
extern const char* STRONG3;
extern const char* BOSS;
}
namespace unit_description {
extern const char* BASIC;
extern const char* FAST;
extern const char* FAST2;
extern const char* STRONG;
extern const char* STRONG2;
extern const char* STRONG3;
extern const char* BOSS;
}
namespace tower_cost{
extern const int BASIC;
extern const int FAST;
extern const int FREEZE;
extern const int SLOW;
extern const int TRAP;
extern const int WALL;
}
namespace tower_damage{
extern const int BASIC;
extern const int FAST;
extern const int FREEZE;
extern const int SLOW;
extern const int TRAP;
extern const int WALL;
}
namespace tower_speed{
extern const int BASIC;
extern const int FAST;
extern const int FREEZE;
extern const int SLOW;
extern const int TRAP;
extern const int WALL;
}
namespace tower_name{
extern const char* BASIC;
extern const char* FAST;
extern const char* FREEZE;
extern const char* SLOW;
extern const char* TRAP;
extern const char* WALL;
}
namespace tower_description{
extern const char* BASIC;
extern const char* FAST;
extern const char* FREEZE;
extern const char* SLOW;
extern const char* TRAP;
extern const char* WALL;
}
struct g_elem{
int x;
int y;
g_elem():x(0),y(0){}
g_elem(int nx, int ny):x(nx),y(ny){}
bool operator==(const g_elem other)
{ return (this->x == other.x) && (this->y == other.y);}
};
g_elem loc2grid(float x, float z);
void grid2loc(g_elem g, float * x, float * z);
const char* getObjectName(int index);
const char* getObjectDescription(int index);
int getObjectCost(int index);
int getObjectDamageHealth(int index);
int getObjectSpeed(int index);