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.

26 lines
409 B

2 years ago
#ifndef ENEMY_H
#define ENEMY_H
#include <QGraphicsPixmapItem>
#include <QObject>
#include <QList>
#include <QPointF>
class Enemy: public QObject, public QGraphicsPixmapItem {
Q_OBJECT
public:
Enemy(QGraphicsItem *parent=0);
void rotateToPoint(QPointF p);
public slots:
void move_forward();
private:
QList<QPointF> points;
QPointF dest;
int point_index;
};
#endif // ENEMY_H