now this work

but angle isn't slowly
This commit is contained in:
2010-02-06 12:33:21 +03:00
committed by andrey
parent 4c81b32bd3
commit 6a11d7fbcd
8 changed files with 87 additions and 355 deletions

View File

@@ -31,7 +31,7 @@ MainWindow::MainWindow(QWidget *parent)
void MainWindow::ADrender()
{
adp->drawAliens(aliens->curAliens[0].AlienPath(), aliens->curAliens[0].pos());
adp->drawAlien(aliens->alienAt(0));
this->repaint();
}
@@ -81,7 +81,7 @@ void MainWindow::SetCell(QPoint pos)
//aliens->clearAliens();
//adp->StepAlien=0;
//adp->AnimAlien=0;
if (!aliens->CreatePath(&(aliens->curAliens[0]))) ClearCell(pos);
if (!aliens->alienAt(0)->RecreatePath()) ClearCell(pos);
else adp->StepAlien=0;
}
}
@@ -99,7 +99,7 @@ void MainWindow::ClearCell(QPoint pos)
adp->clearcell(cp);
//aliens->clearAliens();
//aliens->AddAlien();
aliens->CreatePath(&(aliens->curAliens[0]));
aliens->alienAt(0)->RecreatePath();
adp->StepAlien=0;
}
}