36 lines
882 B
C++
36 lines
882 B
C++
#ifndef ALIENS_H
|
|
#define ALIENS_H
|
|
|
|
#include "basestruct.h"
|
|
//#include <vector>
|
|
|
|
class Aliens
|
|
{
|
|
public:
|
|
Aliens(int TmpDestx, int TmpDesty, int afw, int afh, int alcellsize);
|
|
|
|
QVector<Alien> srcAliens;
|
|
QVector<Alien> curAliens;
|
|
//vector< vector<int> > TmpCells;
|
|
int ** Cells;
|
|
//bool PathIntersect(Alien* Al, Rectangle rect);
|
|
|
|
bool AddAlien();
|
|
void clearAliens();
|
|
void clearCells();
|
|
private:
|
|
int cellsize;
|
|
int ** TmpCells;
|
|
int fw, fh;
|
|
QPoint DestPoint;
|
|
QVector< QVector<QPixmap> > AliensPixmaps;
|
|
//AlienImages AliensPixmaps[1];
|
|
bool CreatePath(Alien* al);
|
|
bool WaveTrace(Alien* al);
|
|
void InvWaveTrace(QPoint cp, int cnt, Alien* al);
|
|
void updateAlienPos(Alien * al);
|
|
int loadAlienImages(int PicType);
|
|
};
|
|
|
|
#endif // ALIENS_H
|