-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructures.h
72 lines (56 loc) · 1.06 KB
/
structures.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
//ID gradjevina
#define WALL_ID 2
#define TOWER_ID 3
#define NEXUS_ID 4
#define POST_ID 5
//max broj objekata
#define MAX_TOWERS 3
#define MAX_WALLS 3
#define MAX_POSTS 3
#define TOWER_DEMAGE 500
#define POST_DEMAGE 500
/* DEFINICIJE STRUKTURA OBJEKATA */
//KULE
struct STower{
int x ;
int y ;
int healt;
int demage;
};
//Baza
struct SNexus{
int x;
int y;
int healt;
};
//Zid
struct SWall{
int x;
int y;
int healt;
};
//"Cuvarski post"
struct SGuardPost{
int x;
int y;
int healt;
int demage;
};
//f-je
void initStructures();
void structPutTower(int x,int y);
int getTowerX(int i);
int getTowerY(int i);
void structPutWall(int x,int y);
int getWallX(int i);
int getWallY(int i);
void structPutPost(int x,int y);
int getPostX(int i);
int getPostY(int i);
int no_structures(int structId);
void attackOnPost(int x,int y,int demage);
void attackOnWall(int x,int y,int demage);
void attackOnTower(int x,int y,int demage);
void attackOnNexus(int demage);
void checkRange(int struct_id, int x,int y,int demage);
char checkGame();