hm.... new global restruct... i think it last!
This commit is contained in:
26
map.h
26
map.h
@@ -1,16 +1,30 @@
|
||||
#ifndef MAP_H
|
||||
#define MAP_H
|
||||
|
||||
#include "games.h"
|
||||
#include <QObject>
|
||||
#include <QSize>
|
||||
#include <QVector>
|
||||
#include <QPointF>
|
||||
|
||||
class map
|
||||
#include "base_types.h"
|
||||
|
||||
|
||||
class Map : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
map(games *parent);
|
||||
void clear();
|
||||
void drawgrid();
|
||||
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:
|
||||
games * game;
|
||||
int **Cells;
|
||||
int mapId;
|
||||
};
|
||||
|
||||
#endif // MAP_H
|
||||
|
||||
Reference in New Issue
Block a user