29 lines
609 B
C++
29 lines
609 B
C++
#ifndef SPLASHES_H
|
|
#define SPLASHES_H
|
|
|
|
#include "game_data.h"
|
|
|
|
class Splashes : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit Splashes(Game_Data * gd, QObject *parent = 0);
|
|
void addSplash( int player, int srcTower, int srcId, QPointF pos, QPointF dest, int aim, QPoint curTower);
|
|
void delSplash(int Id);
|
|
void update();
|
|
signals:
|
|
|
|
public slots:
|
|
void addSplash(QPoint towerId);
|
|
|
|
private:
|
|
Game_Data *gameData;
|
|
int nextId;
|
|
|
|
void doTriggerOnDest(const SplashType &spl, QList <int> * deadIndexes,
|
|
bool badAl);
|
|
void doTriggerOnTimer(SplashType * spl, QList <int> * deadIndexes);
|
|
};
|
|
|
|
#endif // SPLASHES_H
|