fdraw.h
来自「用VC7.0 开发的俄罗斯方块游戏」· C头文件 代码 · 共 34 行
H
34 行
#pragma once
#define ROW 22
#define LINE 10
#define CELL 12
#define SHAPE int
// Fdraw 命令目标
class Fdraw : public CObject
{
public:
Fdraw();
virtual ~Fdraw();
void drawnull(CDC *pDC,CPoint point); //置空
void drawnull(CDC *pDC,int row,int line);
bool Datas[ROW][LINE]; //false 为已经填满,true 为可以填补
COLORREF Cor[ROW][LINE];//存储方块颜色
void drawshape(CDC *pDC,CPoint point,SHAPE shape,int ID,bool overwrite);//画形状ID:方向 shape:0-6
void drawshape(CDC *pDC,int Row,int Col,SHAPE shape,int ID,bool overwrite);//overwrite为true的时候为覆盖false:画图
void drawcell(CDC * pDC,CPoint point,COLORREF crColor);//地址,范围,颜色
void drawcell(CDC * pDC,int Row,int Col,COLORREF crColor);//地址,范围,颜色
void drawmark(CDC *pDC,int mark,bool overwrite);
void getdata(int Shape,int ID);
COLORREF crColor[7];
int m_nData[3][3]; //取得形状数组
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?