gameform.h
来自「俄罗斯方块」· C头文件 代码 · 共 30 行
H
30 行
#ifndef H_GAMEFORM
#define H_GAMEFORM
#include "Form.h"
#include "Box.h"
#include "Grid.h"
#include "DataType.h" // Added by ClassView
class GameForm:public Form
{
public:
//void drawNextBox(const Box & box)const;
//void drawScore(int score) const;
//void eraseScore()const;
//void drawLine(int n,COLORREF color)const;
void eraseGrid(void)const;
void drawGrid(const Grid &grid)const;
GameForm(Rect r, Rect g,COLORREF bColor, COLORREF fColor,int size);
void draw(void) const;
void drawBox(const Box &box) const;
void eraseBox(const Box &box) const;
private:
//Rect regionNextBox;
Rect regionGrid;
//Rect regionScore;
int unitSize;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?