1 Star 0 Fork 22

纵使有花兼明月何堪无酒亦无人/air_plane

forked from zhouxiang/air_plane 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bomb.h 606 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhouxiang 提交于 2013-09-15 18:42 +08:00 . modefy
#ifndef BOMB_H
#define BOMB_H
#include "flyer.h"
#include <QPainter>
class Bomb : public Flyer
{
public:
Bomb(uint speed, QGraphicsScene *scene, QGraphicsItem *parent = 0);
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
virtual void autofly();
virtual void doCollide() {
}
virtual int name() const {
return GlobalParameter::instance()->bombClassFlag;
}
virtual void fall() {
setVisible(false);
deleteLater();
}
private:
QPixmap m_pixmap;
};
#endif // BOMB_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xavier007/air_plane.git
git@gitee.com:xavier007/air_plane.git
xavier007
air_plane
air_plane
master

搜索帮助