added morphs, fix some bugs, new images

added onAlienInRadius trigger
but it not work right((
This commit is contained in:
2011-08-21 22:22:02 +04:00
parent fa68b5a120
commit 894e55bb41
186 changed files with 4040 additions and 3022 deletions

View File

@@ -7,20 +7,24 @@ class Towers : public QObject
{
Q_OBJECT
public:
explicit Towers(Game_Data * gd, QObject *parent = 0);
bool addTower(int playerId, int srcId, QPoint pos);
void delTower(QPoint pos);
void update();
void setScene(QGraphicsScene * scene_) {scene = scene_;}
explicit Towers(Game_Data * gd, QObject *parent = 0);
bool addTower(int playerId, int srcId, QPoint pos);
void delTower(QPoint pos);
bool morphTower(QPoint id, int index);
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();
void setScene(QGraphicsScene * scene_) {scene = scene_;}
signals:
void shot(const TowerType &tow);
void shot(const TowerType &tow);
void tower_killed(QPoint id);
public slots:
private:
Game_Data * gameData;
QGraphicsScene * scene;
Game_Data * gameData;
QGraphicsScene * scene;
};
#endif // TOWERS_H