hm.... new global restruct... i think it last!
This commit is contained in:
20
adcore.cpp
Normal file
20
adcore.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#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++;
|
||||
}
|
||||
Reference in New Issue
Block a user