29 lines
550 B
C++
29 lines
550 B
C++
#ifndef ALIENS_H
|
|
#define ALIENS_H
|
|
|
|
#include "basestruct.h"
|
|
|
|
class Aliens
|
|
{
|
|
public:
|
|
Aliens(GameData *dataAliens);
|
|
|
|
QVector<Alien> srcAliens;
|
|
QVector<Alien> curAliens;
|
|
//bool PathIntersect(Alien* Al, Rectangle rect);
|
|
|
|
bool AddAlien();
|
|
void clearAliens();
|
|
bool CreatePath(Alien* al);
|
|
private:
|
|
int ** TmpCells;
|
|
GameData * data;
|
|
QVector< QVector<QPixmap> > AliensPixmaps;
|
|
bool WaveTrace(Alien* al);
|
|
void InvWaveTrace(QPoint cp, int cnt, Alien* al);
|
|
void updateAlienPos(Alien * al);
|
|
//int loadAlienImages(int PicType);
|
|
};
|
|
|
|
#endif // ALIENS_H
|