Files
aliendefender/aliens.h
buull 4ad7d83625 new class Alien
global restruct ALL!!
2010-02-03 17:18:26 +03:00

30 lines
569 B
C++

#ifndef ALIENS_H
#define ALIENS_H
#include "basestruct.h"
#include "alien.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