⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datatype.h

📁 俄罗斯方块
💻 H
字号:
#ifndef H_DATATYPE
#define H_DATATYPE
#include <vector>
#include<bitset>
#include <list>
using namespace std;

typedef struct  {
	int x;
	int y;
}Coord;

typedef struct {
	int x;
	int y;
	int width;
	int height;	
}Rect;

enum Command
{
	NONE,//无
	LEFT,//向左
	RIGHT,//向右
	DOWN,//向下
	ROTATE,//旋转
	FALL,//直接落下
	PAUSE,//暂停
	QUIT,//退出
	HELP,//帮助,显示操作菜单
	INVALID
};
const int LINES = 20;
const int COLUMNS = 16;
typedef bitset<COLUMNS> LineCode;
typedef bitset<16> BoxCode;
typedef vector<LineCode> GridCode; 
//typedef list<LineCode> GridCode; 
typedef GridCode::iterator IterGrid;
typedef vector<int> VectInt;
typedef VectInt::iterator IterInt;
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -