42 lines
762 B
C++
42 lines
762 B
C++
#ifndef ALIEN_H
|
|
#define ALIEN_H
|
|
|
|
#include "basestruct.h"
|
|
|
|
class Alien
|
|
{
|
|
public:
|
|
Alien();
|
|
bool RecreatePath();
|
|
bool testTrace() {return (WaveTrace(data->start,data->finish) > 0);}
|
|
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
|