Files
aliendefender/towers.h
buull 5318650e91 Core is realy wait for work and test
Aliens create, wavetrace work, towers build, aliens move - thats all by
now.
I think it is time to write Graphic and Network modules.
2010-07-30 01:25:49 +04:00

31 lines
534 B
C++

#ifndef TOWERS_H
#define TOWERS_H
#include <QObject>
#include "game_data.h"
class Towers : public QObject
{
Q_OBJECT
public:
explicit Towers(Game_Data * gd, QObject *parent = 0);
bool AddTower(int playerId, int srcId, QPoint pos);
void DelTowerById(int Id);
void DelTowerByPos(QPoint pos);
void DelTower(int index);
int TowerIndex(int towerId);
void update();
int size() const {return gameData->curTowers.size();}
signals:
//void Shot();
public slots:
private:
Game_Data * gameData;
int nextId;
};
#endif // TOWERS_H