add loader

add schema
new loader model using xml
separated work and load data
validation using schema
map data in xml
new core model... proecting
This commit is contained in:
2010-08-19 20:52:32 +03:00
parent 87455a622e
commit da42fe8f58
20 changed files with 943 additions and 140 deletions

View File

@@ -2,6 +2,7 @@
#define GAME_DATA_H
#include <QObject>
#include <QHash>
#include "player.h"
@@ -10,12 +11,13 @@ class Game_Data : public QObject
Q_OBJECT
public:
explicit Game_Data(Map * map, QObject *parent = 0);
QVector <Alien> srcAliens;
QVector <Alien> curAliens;
QVector <Tower> curTowers;
QVector <Splash> curSplashes;
QVector <Wave> waves;
QVector <Player *> players;
QList <Alien> srcAliens;
QList <Tower> srcTowers;
QHash <int,Alien> curAliens;
QHash <QPoint,Tower> curTowers;
QHash <int,Splash> curSplashes;
QList <Wave> waves;
QList <Player *> players;
Map * map;
int curWave;
int missingAliens;