plane.h
来自「人最近写的一个飞行类的游戏,主要目的是为了锻炼一下自己,提高编程水平,由于本人C」· C头文件 代码 · 共 29 行
H
29 行
// Plane.h: interface for the CPlane class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PLANE_H__B18304E2_601F_4C57_96BF_0685BCD99E7A__INCLUDED_)
#define AFX_PLANE_H__B18304E2_601F_4C57_96BF_0685BCD99E7A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BaseObj.h"
class CPlane : public CBaseObj
{
public:
CPlane(CDirectWnd *win,CObList *ObList);
virtual ~CPlane();
virtual void LoadPic(){};
virtual void Action(){};
int getLife() { return life; }
void setLife(int l) { life = l; }
protected:
int life; //飞机生命
};
#endif // !defined(AFX_PLANE_H__B18304E2_601F_4C57_96BF_0685BCD99E7A__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?