-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathManager.h
43 lines (34 loc) · 1.12 KB
/
Manager.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
#pragma once
#include <Windows.h>
#include <string>
#include <iostream>
#include <random>
#include <chrono>
#include <list>
#include <vector>
#include "Line.h"
using namespace std::chrono;
class Line;
class Manager
{
private:
int numberOfSymbols = 10; // êîë-âî ñèìâîëîâ
int lineGenerationFrequency = 1; //÷àñòî ãåíåðàöèè
int lineSpeed = 1; //ñêîðîñòü ëèíèé
static int epilepsyMode; //ìîä ýïèëåïñèè
std::list <Line*> lineList;
bool number_validator(const std::string numStr, const int minNum, const int maxNum); //âàëèäàöèÿ ÷èñåë îò ìèí äî ìàêñ è îò ñëó÷ ñèìâîëîâ
public:
static std::mt19937 mersenne; //ãåíåðàòîð ïñåâäîñëó÷àéíûõ ÷èñåë,
static int get_epilepsy_mode();
void set_window_size();
void ask_number_of_symbols();
void ask_line_generation_frequency();
void ask_line_speed();
void ask_epilepsy_mode();
void run();
void add_line();
void delete_line();
bool is_next_second(steady_clock::time_point startTime);
//steady_clock::time_point get_rand_mstime(steady_clock::time_point startTime, int durationTimeMs);
};