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

@@ -11,6 +11,7 @@ public:
bool addTower(int playerId, int srcId, QPoint pos);
void delTower(QPoint pos);
bool morphTower(QPoint id, int index);
bool canBuild(int id, int player) {return gameData->players[player]->money >= gameData->players[player]->srcTowers[id].cost;}
bool canMorph(QPoint id, int index) {return gameData->players[gameData->curTowers[id].PlayerId]->money >= gameData->curTowers[id].src->morphs[index].cost &&
gameData->curTowers[id].experience >= gameData->curTowers[id].src->morphs[index].expRequired;}
void update();
@@ -18,7 +19,7 @@ public:
signals:
void shot(const TowerType &tow);
void tower_killed(QPoint id);
// void tower_killed(QPoint id);
public slots: