1 Star 1 Fork 22

zhjun5337 / air_plane

forked from zhouxiang / air_plane 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
enemyplane.h 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef ENEMYPLANE_H
#define ENEMYPLANE_H
#include "flightvehicle.h"
#include <QPainter>
/**
* @brief The EnemyPlane class 敌机
*/
class EnemyPlane : public FlightVehicle
{
public:
typedef enum{LITTLE, MIDDLE, LARGER} STYLE;
EnemyPlane(const QList<QPixmap> &animation, uint bloods,
uint speed, QGraphicsScene *scene,QGraphicsItem *parent = 0);
virtual ~EnemyPlane(){}
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);\
virtual void autofly();
virtual void advance(int);
virtual void posLost();
virtual void fall();
virtual int name() const;
virtual void doCollide() {
}
/**
* @brief style 那类飞机
* @return
*/
STYLE style() const {
return m_style;
}
public slots:
virtual void shoot() {
}
protected slots:
virtual void slt_resetBulletFlag() {
}
void slt_cache() {
// if (!isVisible()) {
// GlobalParameter::instance()->p_eplC->push_back(this);
// }
}
private:
STYLE m_style;
};
#endif // ENEMYPLANE_H
1
https://gitee.com/zhjun5337/air_plane.git
git@gitee.com:zhjun5337/air_plane.git
zhjun5337
air_plane
air_plane
master

搜索帮助