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.
20 lines
386 B
20 lines
386 B
#ifndef TOWER_H |
|
#define TOWER_H |
|
|
|
#include <QGraphicsPixmapItem> |
|
#include <QGraphicsPolygonItem> |
|
#include <QPointF> |
|
#include <QObject> |
|
|
|
class Tower : public QObject, public QGraphicsPixmapItem { |
|
Q_OBJECT |
|
public: |
|
Tower(QGraphicsItem *parent=0); |
|
public slots: |
|
void attack_target(); |
|
private: |
|
QGraphicsPolygonItem *attack_area; |
|
QPointF attack_dest; |
|
}; |
|
|
|
#endif // TOWER_H
|
|
|