add schema new loader model using xml separated work and load data validation using schema map data in xml new core model... proecting
30 lines
496 B
C++
30 lines
496 B
C++
#ifndef GAME_DATA_H
|
|
#define GAME_DATA_H
|
|
|
|
#include <QObject>
|
|
#include <QHash>
|
|
|
|
#include "player.h"
|
|
|
|
class Game_Data : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit Game_Data(Map * map, QObject *parent = 0);
|
|
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;
|
|
signals:
|
|
|
|
public slots:
|
|
};
|
|
|
|
#endif // GAME_DATA_H
|