now is enable build and delete towers in game and improve graphic perfomance

find and correct many-many bugs
This commit is contained in:
2010-08-31 23:37:02 +04:00
parent 0e0f1cbfbb
commit 3316f3f48f
9 changed files with 299 additions and 196 deletions

3
map.h
View File

@@ -33,7 +33,7 @@ public:
explicit Map(QByteArray data, QSize size, QString name, int maxPlayers, int image, QObject *parent = 0);
bool addTowerOnMap(int playerId, QPoint pos);
bool isFreePlace(QPoint pos);
//bool isFreePlace(QPoint pos);
void delTowerOnMap(int playerId, QPoint pos);
void removeAliensPath();
QVector <QPointF> createPath(QPoint start, QPoint finish);
@@ -62,6 +62,7 @@ private:
QVector<QPoint> invWaveTrace(QPoint finish, int cnt);
int waveTrace(QPoint start, QPoint finish);
bool isReachable(int playerId, QPoint pos);
//void CreateMapExample();
//void ReadSettings();
};