new class Alien

global restruct ALL!!
This commit is contained in:
2010-02-03 17:18:26 +03:00
parent 758cfeb967
commit 4ad7d83625
12 changed files with 619 additions and 273 deletions

41
alien.h Normal file
View File

@@ -0,0 +1,41 @@
#ifndef ALIEN_H
#define ALIEN_H
#include "basestruct.h"
class Alien
{
public:
Alien();
bool RecreatePath();
bool testTrace(QPoint start, QPoint finish);
void setPos(FPVector pos);
void update();
FPVector pos() const {return Position;}
QVector<QPointF> AlienPath() const {return path;}
private:
int ** TmpCells;
GameData * data;
FPVector Position;
int PicType;
//int FlX;
//int FlY;
//int Armor;
//int Level;
//int Money;
int PathIndex;
int PicIndex;
//int PicIndl;
//int MaxFrame;
//float Health;
float Speed;
float PicFrame;
//float PicI;
//float Regeneration;
QVector<QPointF> path;
int WaveTrace(QPoint start, QPoint finish);
QVector<QPoint> InvWaveTrace(QPoint finish, int cnt);
};
#endif // ALIEN_H