-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinteractive.h
37 lines (31 loc) · 1.02 KB
/
interactive.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
#pragma once
#ifndef TETRIS_INTERACTIVE_H
#define TETRIS_INTERACTIVE_H
#include <conio.h>
#include <cstdlib>
#include <conio.h>
#include "consoleset.h"
#include "blockgroup.h"
#include "randomgen.h"
#include "map.h"
/*
* 此头文件用于管理方块组,包括但不限于 方块组的创建,方块组的移动
*/
class Interactive
{
private:
ConsoleSet consoleSet; // 控制台参数
BlockGroup* bgNext{}; // 下一个方块组
BlockGroup* bG{}; // 方块组
RandomGen rG; // 随机数生成器
Map map; // 地图
public:
Interactive();
~Interactive();
void cleanScreen(); // 清屏
void creatBlockGroup(); // 创建方块组
void controlMove(); // 控制移动
void startBlock(); // 开始创建、打印、移动方块组
void nextCreat(); // 创建下一个方块组
};
#endif //TETRIS_INTERACTIVE_H