Files
aliendefender/adcore.cpp

21 lines
357 B
C++

#include "adcore.h"
adCore::adCore(QObject *parent) :
QThread(parent)
{
step = 0;
admap = new Map(1,QSize(100,100));
addata = new Game_Data(admap);
adaliens = new Aliens(addata);
adtowers = new Towers(addata);
adsplashes = new Splashes(addata);
}
void adCore::next()
{
adtowers->update();
adsplashes->update();
adaliens->update();
step++;
}