?? game.h
字號:
//game.h
//game 類管理整個游戲
#if !defined(AFX_GAME_H__3CC534BD_4C53_43E1_B403_B03E4EA85F0D__INCLUDED_)
#define AFX_GAME_H__3CC534BD_4C53_43E1_B403_B03E4EA85F0D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "map.h"
#include "screen.h"
#include "diamond.h"
#define STATE_STOP 0
#define STATE_RUNNING 1
#define STATE_PAUSE 2
class game
{
public:
game(HWND hwnd,HDC memdc,HMENU hmenu);
virtual ~game();
void game_newgame();
void game_start();
void game_stop();
void game_about();
void game_pause();
void game_pressleft();
void game_pressright();
void game_pressdown();
void game_pressrotate();
void game_pressfall();
void game_gameover();
void game_timer_run();
private:
unsigned int m_game_state;
HWND m_hwnd;
HDC m_memdc;
HMENU m_hmenu;
int m_timerID;
map *game_map;
screen *game_screen;
screen *game_previewscreen;
diamond *game_previewdiamond;
diamond *game_diamond;
void game_control(int gameaction);
};
#endif // !defined(AFX_GAME_H__3CC534BD_4C53_43E1_B403_B03E4EA85F0D__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -