hm.... new global restruct... i think it last!

This commit is contained in:
2010-07-28 23:07:42 +04:00
parent 52a5384e6f
commit 2869e716b3
32 changed files with 721 additions and 1375 deletions

26
map.h
View File

@@ -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