correct core module with new types

This commit is contained in:
2010-08-23 14:40:52 +03:00
parent 191e5ed1a1
commit 9c8f9fb98c
15 changed files with 146 additions and 103 deletions

View File

@@ -1,8 +1,6 @@
#ifndef SPLASHES_H
#define SPLASHES_H
#include <QObject>
#include "game_data.h"
class Splashes : public QObject
@@ -10,19 +8,17 @@ class Splashes : public QObject
Q_OBJECT
public:
explicit Splashes(Game_Data * gd, QObject *parent = 0);
void AddSplash(int srcId);
void AddSplash(srcSplashType src,TowerType tw);
void DelSplashById(int Id);
void DelSplash(int index);
bool AddSplash(int srcId, QPointF pos);
void DelSplash(int Id);
void update();
int size() const {return gameData->curSplashes.size();}
signals:
public slots:
void AddSplash(srcSplashType src, int index, TowerType tw);
private:
Game_Data *gameData;
int nextId;
};
#endif // SPLASHES_H