its just a test, wait a week...
This commit is contained in:
41
aliens.h
41
aliens.h
@@ -2,36 +2,27 @@
|
||||
#define ALIENS_H
|
||||
|
||||
#include "basestruct.h"
|
||||
//#include <vector>
|
||||
|
||||
class Aliens
|
||||
{
|
||||
public:
|
||||
Aliens(int TmpDestx, int TmpDesty, int afw, int afh, int alcellsize);
|
||||
public:
|
||||
Aliens(GameData *dataAliens);
|
||||
|
||||
QVector<Alien> srcAliens;
|
||||
QVector<Alien> curAliens;
|
||||
int ** Cells;
|
||||
int CurWave;
|
||||
//bool PathIntersect(Alien* Al, Rectangle rect);
|
||||
QVector<Alien> srcAliens;
|
||||
QVector<Alien> curAliens;
|
||||
//bool PathIntersect(Alien* Al, Rectangle rect);
|
||||
|
||||
bool AddAlien();
|
||||
void clearAliens();
|
||||
void clearCells();
|
||||
bool recreatePath();
|
||||
void updateAliens();
|
||||
QVector<QVector<QPixmap> > AliensPixmaps;
|
||||
private:
|
||||
int cellsize;
|
||||
int ** TmpCells;
|
||||
int fw, fh;
|
||||
QPoint DestPoint;
|
||||
bool WaveTrace(Alien* al);
|
||||
bool CreatePath(Alien* al);
|
||||
void InvWaveTrace(QPoint cp, int cnt, Alien* al);
|
||||
void updateAlienPos(Alien * al);
|
||||
int loadPixmap(int PicType, QVector<QPixmap> * pixmaps);
|
||||
bool loadPixmaps(Alien * al);
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user