last changes
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <QEasingCurve>
|
||||
|
||||
#include "adcore.h"
|
||||
#include "moneyitem.h"
|
||||
|
||||
|
||||
class AD_Graphics: public QGraphicsView
|
||||
@@ -23,7 +24,7 @@ public:
|
||||
public slots:
|
||||
void selectTower(ADItem * item) {select_tow = item;}
|
||||
void setBuilding(bool arg) {m_building = arg;}
|
||||
void alienKilled(int id);
|
||||
void alienKilled(int id, bool missed);
|
||||
void towerKilled(QPoint id) {focus_item = 0; if (select_tow != 0) if (select_tow->tid() == id) {select_tow = 0; emit selected_tower_changed(QPoint());}}
|
||||
|
||||
private:
|
||||
@@ -31,6 +32,7 @@ private:
|
||||
void drawForeground(QPainter *painter, const QRectF &rect);
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
void resizeEvent(QResizeEvent *event);
|
||||
|
||||
QGraphicsScene * scene;
|
||||
AD_Core * core;
|
||||
@@ -42,7 +44,9 @@ private:
|
||||
ADItem * selection_tow;
|
||||
ADItem * selection_al;
|
||||
QEasingCurve color_curve;
|
||||
// QList<MoneyItem*> moneyitems;
|
||||
|
||||
QTransform m_scale;
|
||||
bool m_building;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user