31 lines
474 B
C++
31 lines
474 B
C++
#ifndef MAP_H
|
|
#define MAP_H
|
|
|
|
#include <QObject>
|
|
#include <QSize>
|
|
#include <QVector>
|
|
#include <QPointF>
|
|
|
|
#include "base_types.h"
|
|
|
|
|
|
class Map : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit Map(int Id, QSize size, QObject *parent = 0);
|
|
int Id() const {return mapId;}
|
|
int addTowerOnMap();
|
|
int delTowerOnMap();
|
|
QVector <QPointF> CreatePath(QPoint start, QPoint finish);
|
|
signals:
|
|
void RecreateAlienPath();
|
|
public slots:
|
|
|
|
private:
|
|
int **Cells;
|
|
int mapId;
|
|
};
|
|
|
|
#endif // MAP_H
|