new class Alien
global restruct ALL!!
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user