fix bug in del tower and some ui changes

This commit is contained in:
2011-08-28 15:54:43 +04:00
parent 894e55bb41
commit 9f90c1e676
15 changed files with 212 additions and 114 deletions

View File

@@ -23,8 +23,8 @@ public:
public slots:
void selectTower(ADItem * item) {select_tow = item;}
void setBuilding(bool arg) {m_building = arg;}
void alienKilled(int id) {if (select_al != 0) if (select_al->id() == id) select_al = 0;}
void towerKilled(QPoint id) {if (select_tow != 0) if (select_tow->tid() == id) {select_tow = 0; emit selected_tower_changed(QPoint());}}
void alienKilled(int id);
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:
void drawBackground(QPainter * p, const QRectF &);