game.h
来自「俄罗斯方块 采用MFC和GDI+编写的,自己感觉写得不是很好,不过看上去还行」· C头文件 代码 · 共 41 行
H
41 行
#pragma once
#include "Square.h"
#include "Block.h"
#include "GameField.h"
#include <afxwin.h>
#include <string>
using std::wstring;
using namespace Gdiplus;
class Game
{
public:
Game(void);
Game(HDC hdc,DOCINFO *info);
bool ReDraw();
bool Go();
bool Start();
bool Stop();
void ReStrat();
bool SetHDC(HDC & hdc);
bool Init(HDC * hdc,DOCINFO *info);
bool NextOne();
GameField * engine;
Block *nextBlock;//
BlockTypes next_object ;//= Undefined
Block *CurrentBlock;
bool GetProcessing();
int GetTime();
void Switch();
bool EnterGame;//=false
int score;//=0
int GetLevel();
protected:
bool stillProcessing;//=false
int time;//=500 ms
int level;//=1
public:
virtual ~Game(void);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?