-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdraw.h
More file actions
115 lines (98 loc) · 3.62 KB
/
Copy pathdraw.h
File metadata and controls
115 lines (98 loc) · 3.62 KB
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
#pragma once
#ifndef DRAW_H
#define DRAW_H
#include "Game.h"
class Enemy;
class BombPositionDataClass;
class Draw {
public:
void game_name();
void lose_game();
void show_timer_score(int min,
int sec,
int score);
void grid(int GRID_SIZE,
std::string bomb_names[],
int active_bomb,
int selection_bomb,
int active_grid_x,
int active_grid_y,
bool is_place_mode_active,
std::vector<BombPositionDataClass> bombPosition,
std::vector<Enemy>& enemies,
int door_x,
int door_y,
int color_code,
int BOMB_LEVEL[],
int BOMB_RANGE[],
float BOMB_TIMER[],
int number_of_bombs,
int score,
std::chrono::steady_clock::time_point start_time,
std::vector<std::pair<int, int>> portal_corners,
std::vector<std::pair<int, int>> poisoned_cordinates);
static bool is_bomb_placed(int x,
int y,
std::vector<BombPositionDataClass>& bombPosition);
static std::string m_enemy_color;
static int m_enemy_type;
bool isCompleted = false;
private:
std::string place_bomb(int index,
int bomb_lvls[]);
int get_bomb_index(int x,
int y,
std::vector<BombPositionDataClass>& bombPosition);
int get_bomb_level(int x,
int y,
std::vector<BombPositionDataClass>& bombPosition);
void top_grid(int i,
int GRID_SIZE,
bool is_place_mode_active,
int active_grid_x,
int active_grid_y,
std::vector<BombPositionDataClass> bombPosition,
std::vector<Enemy>& enemies,
int door_x,
int door_y,
int color_code,
int BOMB_LEVEL[],
std::vector<std::pair<int, int>> poisoned_cordinates);
void render_bomb_names(int& name_index,
int selection_bomb,
int active_bomb,
bool is_place_mode_active,
std::string bomb_names[],
int bomb_lvls[]);
void bottom_grid(int i,
int GRID_SIZE,
bool is_place_mode_active,
int active_grid_x,
int active_grid_y,
std::vector<BombPositionDataClass> bombPosition,
std::vector<Enemy>& enemies,
int door_x,
int door_y,
int color_code,
std::vector<std::pair<int, int>> portal_corners,
std::vector<std::pair<int, int>> poisoned_cordinates);
void mid_grid(int i,
int selection_bomb,
int active_bomb,
bool is_place_mode_active,
int GRID_SIZE,
int active_grid_x,
int active_grid_y,
int door_x,
int door_y,
int color_code,
std::vector<BombPositionDataClass>& bombPosition,
std::vector<Enemy>& enemies,
int bomb_lvls[],
int name_index,
int bomb_RANGE[],
float BOMB_TIMER[],
int number_of_bombs,
std::vector<std::pair<int, int>> poisoned_cordinates);
};
#endif