hm.... new global restruct... i think it last!
This commit is contained in:
25
towers.h
25
towers.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user