📄 playerplane.h
字号:
// PlayerPlane.h: interface for the CPlayerPlane class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PLAYERPLANE_H__DD03D5FB_27C7_484B_8EFE_07EA28F1007C__INCLUDED_)
#define AFX_PLAYERPLANE_H__DD03D5FB_27C7_484B_8EFE_07EA28F1007C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Plane.h"
#include "PlayerBullet.h"
#include "Bomb.h"
class CPlayerPlane : public CPlane
{
public:
CPlayerPlane(CDirectWnd *win,
CObList *ObList,
int lNum
);
virtual ~CPlayerPlane();
void LoadPic();
void Action();
void Fire();
void getBonus(int type);
void CheckKeyboard();
void setLifeNum( int ln ) { lifeNum = ln; }
void setSuper(BOOL su) { super = su; }
int getLifeNum() { return lifeNum; }
BOOL getSuper() { return super; }
public:
LPDIRECTDRAWSURFACE PlanePic[3];
private:
int moveState; // 0:不动或上下移动 1:向左移动 2:向右移动
int bulletNum; // 子弹数量
int bulletType; // 子弹种类
int bulletLevel; // 子弹级别
int otime; // 用于产生子弹的延时
int stime; // 用于无敌状态时的延时
int bombNum; // 炸弹数量
int lifeNum; // 生命数量
BOOL super; // 是否处于无敌状态
BOOL canControl; // 飞机能否控制
UINT supertime; // 无敌状态的时间
};
#endif // !defined(AFX_PLAYERPLANE_H__DD03D5FB_27C7_484B_8EFE_07EA28F1007C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -