You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
551 B
28 lines
551 B
#ifndef PLAYERBULLET_H
|
|
#define PLAYERBULLET_H
|
|
|
|
#include"bullet.h"
|
|
#include"player.h"
|
|
class playerBullet : public Bullet
|
|
{
|
|
public:
|
|
playerBullet(Player *_player,QPointF _dir,int _Attack, qreal _speed = 8);
|
|
playerBullet(Player *_player,BulletDir _dir,int _Attack, qreal _speed = 8);
|
|
~playerBullet()
|
|
{
|
|
//if(pix != nullptr) delete pix;
|
|
//qDebug() << "pix released";
|
|
}
|
|
|
|
|
|
private:
|
|
//QPixmap* pix = new QPixmap(":/icons/img/bulletsample.png");
|
|
Player* mPlayer;
|
|
|
|
|
|
void PlaySound();
|
|
|
|
};
|
|
|
|
#endif // PLAYERBULLET_H
|