📄 maingame.h
字号:
// MainGame.h: interface for the CMainGame class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINGAME_H__48B9F4D0_2ABA_4E67_A8E6_392CDF4726AE__INCLUDED_)
#define AFX_MAINGAME_H__48B9F4D0_2ABA_4E67_A8E6_392CDF4726AE__INCLUDED_
#include "DirectWnd.h"
#include "GameMap.h"
#include "ContainerObject.h"
#include "PlayerTank.h"
#include "EnemyTank.h"
class CMainGame : public CDirectWnd
{
friend class CBonus;
private:
int status;
int GameProcess; //游戏进度
int level; //游戏第几关
public:
int player1;
int player2; //玩家所剩坦克个数
int Enemy; //敌人的数量
int gameover;
///////////////////////////////////////////////
public:
bool choose; //有没正式进入游戏
CContainerObject *aObject;
CGameMap *theMap;
CPlayerTank *playerTank1;
CPlayerTank *playerTank2;
CEnemyTank *enemyTank;
///////////////////////////////////////////////
public:
CMainGame();
virtual ~CMainGame();
void ShowLoadingBitmap();
void InitGameLevel();
void DrawPlayerNum();
void produceEnemy();
void GameFight();
void LossGame();
void ChooseItem();
void showLevelMap();
////////////////////////////////////////////////
protected:
//{{AFX_MSG(CMainGame)
afx_msg void OnKeyDown(UINT nChar,UINT nRepCnt,UINT nFlags);
afx_msg void OnKeyUp(UINT nChar,UINT nRepCnt,UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif // !defined(AFX_MAINGAME_H__48B9F4D0_2ABA_4E67_A8E6_392CDF4726AE__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -