-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.h
executable file
·95 lines (69 loc) · 1.73 KB
/
map.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
#include <stdbool.h>
// Signals
#define RENDER_FORMAT_STRING "render %i %i %i %i %i"
#define BACKGROUND_COLOR 0
char buffer[8 * 1024];
char mapName[1024];
char authorName[1024];
char castleStrength[1024];
char castleTouch[1024];
char attackerWin[1024];
char attackerShots[1024];
char attackerRespawn[1024];
char defenderWin[1024];
char defenderShots[1024];
char defenderRespawn[1024];
char map[1024];
char castle[1024];
char attacker[1024];
char defender[1024];
int attackerRespawnPointCount;
int defenderRespawnPointCount;
int wallCount;
struct point_t {
int x;
int y;
};
struct row_t {
char content[1024];
};
struct percent_wall {
int x;
int y;
};
struct round_counter {
int x;
int y;
};
struct round_counter round_counter_location[10];
struct percent_wall percent_wall_location[10];
struct point_t attacker_respawn_location_list[1024];
struct point_t defender_respawn_location_list[1024];
struct row_t list_row[20];
char* getMap();
char* getMapName();
char* getAuthor();
int getDefaultCastleStrength();
int getCastleTouch();
void set_castle_strength(int, int, int);
int get_castle_strength(int, int);
bool isCastleChar(char);
int get_current_wall_count();
int get_initial_wall_count();
int getAttackerWin();
int getAttackerShots();
int getAttackerRespawn();
int getDefenderWin();
int getDefenderShots();
int getDefenderRespawn();
char getCharOnMap(int, int);
struct point_t getAttackerRespawnPoint();
struct point_t getDefenderRespawnPoint();
struct percent_wall getPercentWall();
struct round_counter getRoundCounter();
void setCharOnMap(char, int, int);
void createColorPair();
void initBoard();
void teamInfoMap();
void loadMapSecondRound(char[1024]);
void loadMap(char[1024]);