-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTAGS
322 lines (304 loc) · 14.6 KB
/
TAGS
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
include/DecisionMaker2.h,337
#define DECISION_MAKER_2_HDECISION_MAKER_2_H2,27
class DecisionMaker2DecisionMaker215,343
int weightage_table[4][4];weightage_table19,395
int difficulty_table[4];difficulty_table20,427
Info my_info;my_info21,457
Info opp_info;opp_info22,476
MapClass my_map;my_map23,496
Info info;info24,518
include/DecisionMaker1.h,337
#define DECISION_MAKER_1_HDECISION_MAKER_1_H2,27
class DecisionMaker1DecisionMaker115,343
int weightage_table[4][4];weightage_table19,395
int difficulty_table[4];difficulty_table20,427
Info my_info;my_info21,457
Info opp_info;opp_info22,476
MapClass my_map;my_map23,496
Info info;info24,518
include/DecisionMaker.h,333
#define DECISION_MAKER_HDECISION_MAKER_H2,25
class DECISION_MAKERDECISION_MAKER15,339
int weightage_table[4][4];weightage_table19,391
int difficulty_table[4];difficulty_table20,423
Info my_info;my_info21,453
Info opp_info;opp_info22,472
MapClass my_map;my_map23,492
Info info;info24,514
include/Info.h,1194
#define INFO_HINFO_H2,15
class object_infoobject_info15,186
int shortest_distance;shortest_distance19,235
Move initial_move;initial_move20,263
Position posn;posn21,287
class InfoInfo25,331
Position curr_posn;curr_posn30,412
ID my_ID, enemy_ID;my_ID32,499
ID my_ID, enemy_ID;enemy_ID32,499
bool can_shoot_at_enemy_tank, can_shoot_at_enemy_falcon;can_shoot_at_enemy_tank33,524
bool can_shoot_at_enemy_tank, can_shoot_at_enemy_falcon;can_shoot_at_enemy_falcon33,524
Direction shoot_falcon_dirn, shoot_enemy_tank_dirn; shoot_falcon_dirn34,586
Direction shoot_falcon_dirn, shoot_enemy_tank_dirn; shoot_enemy_tank_dirn34,586
vector <object_info> gold;gold37,680
vector <Bullet> my_bullet_list, enemy_bullet_list;my_bullet_list38,712
vector <Bullet> my_bullet_list, enemy_bullet_list;enemy_bullet_list38,712
vector <Tank> machine_gun_list;machine_gun_list39,768
object_info my_falcon;my_falcon40,805
object_info opp_falcon;opp_falcon41,833
object_info opp_tank; opp_tank42,862
object_info nearest_gold;nearest_gold43,890
bool gold_available;gold_available44,921
include/Tank.h,1188
#define TANK_HTANK_H3,16
class BulletBullet13,112
char symbol;symbol17,153
Direction curr_dirn;curr_dirn18,171
Position curr_posn, prev_posn;curr_posn19,197
Position curr_posn, prev_posn;prev_posn19,197
bool disappear_flag;disappear_flag20,233
Bullet ()Bullet23,279
void set_disappear_flag ()set_disappear_flag30,489
void print ()print36,668
class TankTank48,918
class FalconFalcon52,940
bool dead_flag;dead_flag56,1001
char symbol;symbol57,1027
Position posn;posn58,1050
Falcon (){Falcon61,1097
char symbol;symbol72,1363
ID id;id73,1381
Falcon falcon;falcon74,1393
char bullet_symbol;bullet_symbol75,1413
vector<Bullet> bullet_list;bullet_list76,1438
Move next_move;next_move77,1471
Position curr_posn, prev_posn;curr_posn78,1492
Position curr_posn, prev_posn;prev_posn78,1492
bool dead_flag;dead_flag79,1528
int score;score80,1549
Tank () { };Tank84,1593
void print_bullets ()print_bullets98,2067
Tank operator=(const Tank copyate)operator =105,2231
~Tank()~Tank155,4095
include/Arena.h,372
#define ARENA_HARENA_H3,17
class ArenaArena16,206
MapClass Map;Map23,294
bool game_over_flag;game_over_flag24,313
Tank tank1, tank2;tank125,339
Tank tank1, tank2;tank225,339
DecisionMaker1 DM1;DM126,363
DecisionMaker2 DM2;DM227,388
vector <Tank> machine_gun_list;machine_gun_list28,413
int move_no;move_no29,450
include/Map.h,425
#define MAP_HMAP_H3,15
class MapClassMapClass11,118
std::ofstream log_file;log_file14,145
char map[MAP_SIZE][MAP_SIZE];map18,243
Position tank1_init_posn;tank1_init_posn19,278
Position tank2_init_posn;tank2_init_posn20,309
Position falcon1_posn;falcon1_posn23,398
Position falcon2_posn;falcon2_posn24,426
std::vector <Position> machine_guns_posns;machine_guns_posns27,510
include/Misc_Classes.h,446
#define MISC_CLASSES_HMISC_CLASSES_H2,23
class IDID5,48
int player_no;player_no8,67
char tank_symbol;tank_symbol9,87
char falcon_symbol;falcon_symbol10,110
class Direction Direction13,139
int xdir, ydir;xdir16,166
int xdir, ydir;ydir16,166
class MoveMove27,392
bool shoot;shoot30,413
Direction dirn;dirn31,430
class PositionPosition40,659
int x, y;x43,684
int x, y;y43,684
include/Constants.h,2708
#define CONSTANTS_HCONSTANTS_H2,20
#define DO_NOT_MOVE DO_NOT_MOVE5,58
enum eventevent8,98
ENEMY_KILLED = 500,ENEMY_KILLED10,111
PICKED_UP_GOLD = 40,PICKED_UP_GOLD11,136
ENEMY_FALCON_KILLED = 1000,ENEMY_FALCON_KILLED12,162
ALIVE_AT_THE_END = 400,ALIVE_AT_THE_END13,195
DESTROYED_ENEMY_BUNKER = 65DESTROYED_ENEMY_BUNKER14,224
#define GO_TO_NEAREST_GOLD GO_TO_NEAREST_GOLD18,275
#define ATTACK_ENEMY_FALCON ATTACK_ENEMY_FALCON19,304
#define ATTACK_ENEMY_TANK ATTACK_ENEMY_TANK20,334
#define DEFEND_MY_FALCON DEFEND_MY_FALCON21,362
#define AGGRESSIVE AGGRESSIVE23,390
#define DEFENSIVE DEFENSIVE24,411
#define GREEDY GREEDY25,432
#define CUSTOMIZED CUSTOMIZED26,449
#define MAP_SIZE MAP_SIZE29,494
#define ASCII_CHARS ASCII_CHARS31,515
#define MAX_CLASS_NAME_LENGTH MAX_CLASS_NAME_LENGTH32,539
#define DELAY DELAY33,572
#define DELAY_STEP DELAY_STEP34,590
#define MIN_DELAY MIN_DELAY35,613
#define MAX_DELAY MAX_DELAY36,633
#define END_SCORE_CHAR END_SCORE_CHAR37,656
#define GOLD_COLOUR GOLD_COLOUR40,704
#define WALL_COLOUR WALL_COLOUR41,750
#define EMPTY_COLOUR EMPTY_COLOUR42,792
#define DEAD_COLOUR DEAD_COLOUR43,834
#define TANK1_COLOUR TANK1_COLOUR45,875
#define FALCON1_COLOUR FALCON1_COLOUR46,919
#define BULLET1_COLOUR BULLET1_COLOUR47,963
#define TANK2_COLOUR TANK2_COLOUR49,1006
#define FALCON2_COLOUR FALCON2_COLOUR50,1050
#define BULLET2_COLOUR BULLET2_COLOUR51,1094
#define MACHINE_GUN_COLOUR MACHINE_GUN_COLOUR53,1137
#define MACHINE_GUN_BULLET_COLOUR MACHINE_GUN_BULLET_COLOUR54,1178
#define TEXT_COLOUR TEXT_COLOUR56,1221
#define MACHINE_GUN_SHOOT_ONCE_IN_THIS_MANY MACHINE_GUN_SHOOT_ONCE_IN_THIS_MANY59,1288
#define END_SCORE_CHAR END_SCORE_CHAR60,1334
#define GOLD GOLD62,1362
#define WALL WALL63,1394
#define EMPTY EMPTY64,1426
#define DEAD DEAD65,1458
#define TANK1 TANK167,1491
#define BUNKER1 BUNKER168,1523
#define FALCON1 FALCON169,1555
#define BULLET1 BULLET170,1587
#define TANK2 TANK272,1620
#define BUNKER2 BUNKER273,1652
#define FALCON2 FALCON274,1684
#define BULLET2 BULLET275,1716
#define MACHINE_GUN MACHINE_GUN77,1749
#define MACHINE_GUN_BULLET MACHINE_GUN_BULLET78,1781
#define MAX_NUMBER_OF_MOVES MAX_NUMBER_OF_MOVES81,1834
#define BULLET_SPEED BULLET_SPEED82,1852
#define UP UP85,1893
#define DOWN DOWN86,1908
#define RIGHT RIGHT87,1925
#define LEFT LEFT88,1942
#define GO_UP GO_UP90,1960
#define GO_DOWN GO_DOWN91,1978
#define GO_RIGHT GO_RIGHT92,1998
#define GO_LEFT GO_LEFT93,2018
#define SHOOT_UP SHOOT_UP94,2038
#define SHOOT_DOWN SHOOT_DOWN95,2059
#define SHOOT_RIGHT SHOOT_RIGHT96,2082
#define SHOOT_LEFT SHOOT_LEFT97,2105
DecisionMaker1.cpp,1008
Move DECISION_MAKER::get_player_move(Info my_info,get_player_move34,1104
void DECISION_MAKER::set_weightage_table(int strategy,set_weightage_table83,3106
void DECISION_MAKER::set_difficulty_table(int go_to_nearest_gold_difficulty,set_difficulty_table124,5312
void DECISION_MAKER::DMinitializer(ID my_id, ID enemy_id)DMinitializer136,5964
void DECISION_MAKER::fill_difficulty_table()fill_difficulty_table157,6750
Move DECISION_MAKER::return_best_move(int best_action_plan)return_best_move171,7323
Move DECISION_MAKER::go_to_nearest_gold_move()go_to_nearest_gold_move196,8080
Move DECISION_MAKER::attack_enemy_falcon_move()attack_enemy_falcon_move213,8494
Move DECISION_MAKER::attack_enemy_tank_move()attack_enemy_tank_move232,8936
Move DECISION_MAKER::defend_my_falcon_move()defend_my_falcon_move248,9273
int DECISION_MAKER::calculate_best_action_plan(int strategy)calculate_best_action_plan254,9456
int DECISION_MAKER::find_the_maximum( float* action_score )find_the_maximum302,11018
DecisionMaker2.cpp,1008
Move DECISION_MAKER::get_player_move(Info my_info,get_player_move34,1182
void DECISION_MAKER::set_weightage_table(int strategy,set_weightage_table83,3184
void DECISION_MAKER::set_difficulty_table(int go_to_nearest_gold_difficulty,set_difficulty_table124,5390
void DECISION_MAKER::DMinitializer(ID my_id, ID enemy_id)DMinitializer136,6042
void DECISION_MAKER::fill_difficulty_table()fill_difficulty_table157,6828
Move DECISION_MAKER::return_best_move(int best_action_plan)return_best_move171,7401
Move DECISION_MAKER::go_to_nearest_gold_move()go_to_nearest_gold_move196,8158
Move DECISION_MAKER::attack_enemy_falcon_move()attack_enemy_falcon_move213,8572
Move DECISION_MAKER::attack_enemy_tank_move()attack_enemy_tank_move232,9014
Move DECISION_MAKER::defend_my_falcon_move()defend_my_falcon_move248,9351
int DECISION_MAKER::calculate_best_action_plan(int strategy)calculate_best_action_plan254,9534
int DECISION_MAKER::find_the_maximum( float* action_score )find_the_maximum303,11169
src/Arena.cpp,663
void Arena::initialize_machine_guns()initialize_machine_guns11,131
Arena::Arena () Arena28,568
void Arena::print_scores ()print_scores57,1355
void Arena::get_machine_moves (bool bullets_only)get_machine_moves71,1664
void Arena::move_bullets ()move_bullets84,2061
void Arena::get_player_moves (bool bullets_only)get_player_moves93,2281
void Arena::execute_tank_moves ()execute_tank_moves137,3984
void Arena::evaluate_static_interactions ()evaluate_static_interactions151,4308
void Arena::evaluate_dynamic_interactions ()evaluate_dynamic_interactions167,4800
void Arena::update_map ()update_map245,7307
void Arena::end_game ()end_game287,8396
src/Map.cpp,810
MapClass::MapClass ()MapClass10,117
void MapClass::create_from_file (string filename) create_from_file15,176
char MapClass::get_element (int x_coord, int y_coord) constget_element50,1285
char MapClass::get_element (Position posn) constget_element67,1755
bool MapClass::is_symbol (int x_coord, int y_coord, char symbol) constis_symbol72,1857
bool MapClass::is_symbol (Position posn, char symbol) constis_symbol77,1992
void MapClass::set_element (int x_coord, int y_coord, char data, bool print_log)set_element82,2104
void MapClass::set_element (Position posn, char data, bool print_log) set_element101,2718
MapClass & MapClass::operator = (const MapClass & orig_map)operator =106,2851
MapClass::~MapClass ()~MapClass121,3380
void MapClass::print_log(int x, int y, char k)print_log126,3437
src/log_to_html.cpp,439
string insert_css ()insert_css11,142
string make_divs (char * filename)make_divs123,12942
string insert_legend ()insert_legend137,13290
string insert_controls ()insert_controls246,25113
string insert_points_table ()insert_points_table288,29583
string insert_status_notifier ()insert_status_notifier329,33077
string insert_func_list()insert_func_list357,36135
string insert_js()insert_js393,37240
int main() main603,53809
src/TankWars.cpp,82
void print_scores(const Arena & arena)print_scores11,141
int main()main31,827
src/Tank.cpp,1707
Tank::Tank (char symbol,Tank9,101
void Tank::initialize_from (int given_player_no,initialize_from22,427
void Tank::get_next_move (Move move)get_next_move54,1245
void Tank::get_dummy_move ()get_dummy_move70,1750
void Tank::get_machine_random_move () get_machine_random_move75,1827
void Tank::move_bullets ()move_bullets86,2012
void Tank::execute_next_move()execute_next_move96,2294
void Tank::move ()move108,2533
void Tank::shoot_bullet ()shoot_bullet117,2760
void Tank::evaluate_static_interactions (MapClass & Map)evaluate_static_interactions131,3098
bool Tank::is_killed_by (Tank t)is_killed_by154,3786
void Tank::die_by_tank (Tank &t)die_by_tank183,4519
void Tank::pick_up_gold_if_possible (MapClass & Map)pick_up_gold_if_possible190,4678
bool Tank::crashed_into_wall (MapClass & Map)crashed_into_wall198,4897
bool Tank::crashed_into_bunker (MapClass & Map)crashed_into_bunker206,5045
void Tank::die_by_wall_crash ()die_by_wall_crash222,5404
void Tank::die_by_bunker_crash ()die_by_bunker_crash228,5476
void Tank::check_bullet_interactions (Tank t)check_bullet_interactions234,5550
void Tank::incr_score (event e)incr_score253,6265
void Tank::update_bullets_on_map (MapClass & Map)update_bullets_on_map259,6359
void Tank::update_on_map (MapClass & Map)update_on_map290,7115
void Bullet::move ()move320,8062
void Bullet::check_for_crashes (MapClass & Map)check_for_crashes329,8219
bool Bullet::destroyed_enemy_bunker (MapClass & Map) destroyed_enemy_bunker360,9236
void Bullet::update_on_map (MapClass & Map)update_on_map375,9640
void Tank::Falcon::set_dead_flag ()set_dead_flag412,10856
bool Tank::Falcon::is_killed_by (Tank &t)is_killed_by418,10921
src/Info.cpp,434
void Info::initializer(const ID mine, const ID enemy)initializer14,178
void Info::update_distances(MapClass &map,Position source)update_distances27,491
void Info::update_info (MapClass &map, update_info209,5864
bool Info::update_shoot_variables (MapClass &Map)update_shoot_variables224,6355
void Info::print_info()print_info315,8336
object_info::object_info ()object_info330,8726
void object_info::print ()print335,8788
src/Misc_Classes.cpp,1025
Direction::Direction()Direction11,131
Direction::Direction(int given_dirn)Direction17,219
Direction::Direction(int xdir, int ydir)Direction22,303
void Direction::print ()print28,395
void Direction::get_from_integer (int inp)get_from_integer47,762
Move::Move() Move73,1248
Move::Move (int given_move)Move78,1293
Move::Move (bool shoot, int xdir, int ydir)Move83,1366
void Move::interpret_move (int user_move, bool is_machine_gun_move)interpret_move89,1483
void Move::print() print114,2222
Position::Position ()Position120,2325
Position::Position (int x, int y)Position125,2368
void Position::go_in_direction (Direction d)go_in_direction131,2443
bool Position::operator== (Position p)operator ==137,2529
Position Position::get_neighbour (Direction d)get_neighbour142,2625
void Position::print ()print150,2755
Position Position::operator = (Position pos)operator =155,2837
Move Move::operator = (Move mov)operator =162,2950
Direction Direction::operator = (Direction dir)operator =169,3065