📄 gamestatus.h
字号:
#ifndef GAME_STATUS_
#define GAME_STATUS_
#include "dd.h"
#include "DI.h"
#include "DS.h"
#include "define.h"
//#include "Spirit.h"
//#include "saintfighter.h"
//#include "bingHe.h"
//#include "ShaJia.h"
//#include "Enemy.h"
class CGameStatus;
class CGameStatus
{
public:
CDI* m_pDI;
CDD* m_pDD;
CDS* m_pDS;
LPCSTR m_szSourceBitmap;
LPCSTR m_szSourceWaves[DSOUND_MAX_NUM];
//Page procedure:
public:
bool m_bActive;
bool m_bLocked;//如果一种状态被locked了,那从外部就不能控制他;
bool m_bOK;//pass this stage;
bool m_bCancel;//die in this stage;
int m_nScorePlayer1;
int m_nScorePlayer2;
long unsigned int m_luTime;
//MSG m_MESSAGE;
public:
CGameStatus(CDD* pdd,LPCSTR szBitmap,CDI* pdi,CDS* pds,LPCSTR szWaves[DSOUND_MAX_NUM],int nSoundNum);
//bool Initialize(LPCSTR szBitmap);
int GetScore1(void){return m_nScorePlayer1;};
int GetScore2(void){return m_nScorePlayer2;};
void SetScore1(int nScore){m_nScorePlayer1=nScore;return;};
void SetScore2(int nScore){m_nScorePlayer2=nScore;return;};
virtual bool Run(void)=0; //更新数据;
virtual void Show(void)=0;//更新屏幕;
void Destroy(void){return;};
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -