/** * zerstört das Objekt. */ void noStaticObject::Destroy_noStaticObject() { // waren wir ein "Schloss" Objekt? if(GetSize() == 2) { for(unsigned i = 0; i < 3; ++i) gwg->DestroyNO(gwg->GetNeighbour(pos, i)); } Destroy_noBase(); }
/** * zerstört das Objekt. * * @author FloSoft */ void noStaticObject::Destroy_noStaticObject(void) { // waren wir ein "Schloss" Objekt? if(GetSize() == 2) { for(unsigned i = 0; i < 3; ++i) { MapCoord xa = gwg->GetXA(x, y, i); MapCoord ya = gwg->GetYA(x, y, i); noBase* no = gwg->GetSpecObj<noBase>(xa, ya); if(no) { no->Destroy(); delete no; gwg->SetNO(NULL, xa, ya); } } } Destroy_noBase(); }
void noFighting::Destroy_noFighting() { RTTR_Assert(!soldiers[0]); RTTR_Assert(!soldiers[1]); Destroy_noBase(); }
void noFighting::Destroy_noFighting() { Destroy_noBase(); }