some bugfix in ADeditor

memory optimization in AD
This commit is contained in:
2010-09-18 00:00:32 +04:00
parent 97c8725091
commit 0a9679fd99
14 changed files with 399 additions and 133 deletions

View File

@@ -6,15 +6,16 @@ AD_Core::AD_Core(QObject *parent) :
step = 0;
//admap = new Map(1);
//addata = new Game_Data(admap);
adloader = new Loader();
Loader * adloader = new Loader();
adloader->load("data2.xml");
//adloader->save("data2.xml");
addata = adloader->loadlevel(1);
delete adloader;
if (addata != 0) qDebug("Sucsess");
else qFatal("Error");
Player * pl1 = new Player(0);
//Player * pl1 = new Player(0);
// Player * pl2 = new Player(0);
addata->players.push_back(pl1);
//addata->players.push_back(pl1);
// addata->players.push_back(pl2);
adaliens = new Aliens(addata);
adtowers = new Towers(addata);