fix bug in del tower and some ui changes
This commit is contained in:
3
towers.h
3
towers.h
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user