?? 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 + -