added some graphics but only for debug
This commit is contained in:
21
map.h
21
map.h
@@ -35,14 +35,15 @@ public:
|
||||
bool isFreePlace(QPoint pos);
|
||||
void delTowerOnMap(QPoint pos);
|
||||
void removeAliensPath();
|
||||
QVector <QPointF> CreatePath(QPoint start, QPoint finish);
|
||||
QRect Rect() const {return QRect(QPoint(),mapSize);}
|
||||
QVector <QPointF> createPath(QPoint start, QPoint finish);
|
||||
QRect rect() const {return QRect(QPoint(),mapSize);}
|
||||
// QString name() const {return mapName;}
|
||||
QList <QPoint> Starts() const {return starts;}
|
||||
QList <QPoint> Finishs() const {return finishs;}
|
||||
int Image() const {return imageType;}
|
||||
QList <QPoint> starts() const {return Starts;}
|
||||
QList <QPoint> finishs() const {return Finishs;}
|
||||
QVector < QVector <int> > cells() const {return Cells;}
|
||||
int image() const {return imageType;}
|
||||
signals:
|
||||
void RecreateAlienPath(bool * pathOK);
|
||||
void recreateAlienPath(bool * pathOK);
|
||||
public slots:
|
||||
void printMap();
|
||||
|
||||
@@ -52,13 +53,13 @@ private:
|
||||
int players;
|
||||
int imageType;
|
||||
QVector < QVector <int> > Cells;
|
||||
QList <QPoint> starts;
|
||||
QList <QPoint> finishs;
|
||||
QList <QPoint> Starts;
|
||||
QList <QPoint> Finishs;
|
||||
|
||||
QVector < QVector <int> > TmpCells;
|
||||
|
||||
QVector<QPoint> InvWaveTrace(QPoint finish, int cnt);
|
||||
int WaveTrace(QPoint start, QPoint finish);
|
||||
QVector<QPoint> invWaveTrace(QPoint finish, int cnt);
|
||||
int waveTrace(QPoint start, QPoint finish);
|
||||
//void CreateMapExample();
|
||||
//void ReadSettings();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user