Code: Select all
CStats creepstats1=CStats(device, 102);
CUnit creepunit1=CUnit(device,&creepstats1);
unitlist.add(&creepunit1);
Code: Select all
statarray.push_back(CStats(device,101));
unitarray.push_back(CUnit(device,&statarray.getLast()));
unitlist.add(&unitarray.getLast());
Code: Select all
core::array<CUnit> unitarray;
core::array<CStats> statarray;
Am I using the irrArray class correctly? Would it be better to have my Linked List UnitList class hold the stats and unit data directly? Thanks.