📄 playertank.h
字号:
// PlayerTank.h: interface for the CPlayerTank class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PLAYERTANK_H__BAA324F6_1BE2_4199_9D64_DBF740A4D213__INCLUDED_)
#define AFX_PLAYERTANK_H__BAA324F6_1BE2_4199_9D64_DBF740A4D213__INCLUDED_
#include "BaseTank.h"
class CPlayerTank : public CBaseTank
{
friend class CBonus;
private:
int chaDirection; //是否可变
int dirStatus[4]; //各方向上的状态
public:
int score; //玩家的分数
public:
CPlayerTank(int px,int py,int dir,int type);
virtual ~CPlayerTank();
void ShowInformation();
////////////////////////////////
void clearStatus();
int getStatus();
void changeDirection();
void KeyRelease(int n);
void KeyPress(int n);
///////////////////////////////virtual
bool ActiveObject();
///////////////////
void GetSpeed();
void GetAttack();
};
#endif // !defined(AFX_PLAYERTANK_H__BAA324F6_1BE2_4199_9D64_DBF740A4D213__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -