hm.... new global restruct... i think it last!

This commit is contained in:
2010-07-28 23:07:42 +04:00
parent 52a5384e6f
commit 2869e716b3
32 changed files with 721 additions and 1375 deletions

View File

@@ -1,19 +1,26 @@
#ifndef TOWERS_H
#define TOWERS_H
#include "games.h"
#include <QObject>
class towers
#include "game_data.h"
class Towers : public QObject
{
Q_OBJECT
public:
towers(games *parent);
//QVector<Tower> srcTowers;
//QVector<Tower> curTowers;
//void AddTower(QPoint point, int type);
void drawcell(QPoint pnt);
void clearcell(QPoint pnt);
explicit Towers(Game_Data * gamedata, QObject *parent = 0);
void AddTower(int srcId);
void DelTowerById(int Id);
void DelTower(int index);
void update();
int size() const {return GameData->curTowers.size();}
signals:
//void Shot();
public slots:
private:
games * game;
Game_Data * GameData;
};
#endif // TOWERS_H