cgame.h

来自「我在资源网上发布的一个brickshorterjr的代码」· C头文件 代码 · 共 53 行

H
53
字号
#ifndef	CGAME_H
#define	CGAME_H

#include    <time.h>
#include	<hge.h>

#include	"CResource.h"
#include	"CSplash.h"
#include	"CGameArea.h"
#include    "resource.h"
#include	"g_info.h"

enum	e_GameState
{
	GAME_STATE_SPLASH = 0,
	GAME_STATE_MENU,
	GAME_STATE_CHOOSE,
	GAME_STATE_PLAY,
	GAME_STATE_SCORE,
	GAME_STATE_EXIT
};

class    CGame
{

public:
	
	CGame();

	bool    Init( bool (*frameFunc )() );
	
	bool	Start();

	bool	MainLoop();
	
	bool	GameSplash();

	bool    GamePlay();

	void    Release();

private:
	
	HGE          *m_hgeEngine;
	
	CResource    *m_resource;	
	CSplash      *m_splash;
	CGameArea    *m_gameArea;

	e_GameState  m_GameState;		
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?