Files
aliendefender/adcore.h
2010-08-27 14:04:05 +04:00

38 lines
602 B
C++

#ifndef ADCORE_H
#define ADCORE_H
#include <QThread>
#include "aliens.h"
#include "towers.h"
#include "splashes.h"
#include "loader.h"
class AD_Core : public QThread
{
Q_OBJECT
public:
explicit AD_Core(QObject *parent = 0);
Game_Data * addata;
Aliens * adaliens;
Towers * adtowers;
Splashes * adsplashes;
Loader * adloader;
unsigned int step;
private:
void timerEvent(QTimerEvent * );
void waveProcessing();
bool waveInProgress;
int wavetime;
public slots:
void next();
void nextWave();
void addTower(QPoint pos) {adtowers->addTower(0, 0, pos);};
signals:
};
#endif // ADCORE_H