-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.h
48 lines (40 loc) · 1011 Bytes
/
app.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
#ifndef app_h
#define app_h
#include "arrayList.h"
#include "figura.h"
#include "explosion.h"
#include "line.h"
#include <vector>
using namespace std;
class App {
public:
int console_width = 0;
int console_height = 0;
int input_min_radius = 0;
int input_max_radius = 0;
int delete_number = 0;
int input_chance = 0;
unsigned long time_now_sec = 0;
unsigned long time_now_ms = 0;
Line parametr_for_line;
Line* one_line;
Explosion* explosion;
string text_input_max_radius;
vector<short>free_places;
ArrayList<unsigned long>creation_lines;
vector<Figura*>lines_and_explosions;
int getConsoleWidth();
int getConsoleHeight();
void begin();
void spawnLines();
void createLines();
void drawDeleteLines();
void input();
void input_radius();
int getRightNumber(string request, string type);
bool getRightText(string request);
bool isGoodInput(string str, string type);
unsigned long timeNowMS();
unsigned long timeNowSec();
};
#endif