now is enable build and delete towers in game and improve graphic perfomance
find and correct many-many bugs
This commit is contained in:
3
map.h
3
map.h
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user