📄 game.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -