the first source

This commit is contained in:
2009-08-30 12:50:03 +04:00
commit 1e9ae4d6bb
44 changed files with 1547 additions and 0 deletions

30
aliens.h Normal file
View File

@@ -0,0 +1,30 @@
#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);
deque<Alien> srcAliens;
deque<Alien> curAliens;
//vector< vector<int> > TmpCells;
int ** Cells;
int fw, fh, AliensCnt, CurWave;
QPoint DestPoint;
//bool PathIntersect(Alien* Al, Rectangle rect);
bool AddAlien();
void clearAliens();
void clearCells();
private:
int cellsize;
int ** TmpCells;
bool CreatePath(Alien* al);
bool WaveTrace(Alien* al);
void InvWaveTrace(QPoint cp, int cnt, Alien* al);
};
#endif // ALIENS_H