new class Alien

global restruct ALL!!
This commit is contained in:
2010-02-03 17:18:26 +03:00
parent 758cfeb967
commit 4ad7d83625
12 changed files with 619 additions and 273 deletions

View File

@@ -3,18 +3,18 @@
adpainter::adpainter(int width, int height, int adpcellsize)
{
QString str;
QPixmap tmpAlPixmap;
int i=1;
cellsize = adpcellsize;
buff = new QPixmap(width,height);
background = new QPixmap(width,height);
pen = new QPen();
brush = new QBrush();
QString str;
QPixmap tmpAlPixmap;
int i=1;
str.setNum(i);
while (i != 0) {
str.setNum(i);
tmpAlPixmap.load("./images/Aliens/Al_00_" + str + ".png");
tmpAlPixmap.load(":/aliens/images/Aliens/Al_00_" + str + ".png");
//qDebug() << tmpAlPixmap.isNull();
if (!tmpAlPixmap.isNull()) {
AlienPix.push_back(tmpAlPixmap);
@@ -57,7 +57,7 @@ void adpainter::drawgrid()
}
void adpainter::drawAliens(QVector<QPointF> path, FPVector * position)
void adpainter::drawAliens(QVector<QPointF> path, FPVector position)
{
float tmpdx,tmpdy,arctg,tmpdx1,tmpdy1;
//unsigned char dd[4];