45 lines
886 B
C++
45 lines
886 B
C++
#ifndef ALIEN_H
|
|
#define ALIEN_H
|
|
|
|
#include "games.h"
|
|
|
|
class Alien
|
|
{
|
|
public:
|
|
Alien(games *parent, float alienspeed = 0.1);
|
|
bool RecreatePath();
|
|
//bool testTrace() {return (WaveTrace(data->start,data->finish) > 0);}
|
|
void setPos(QPointF pos) {position = pos;}
|
|
bool update();
|
|
void resetIndexPic() {PicIndex = 0;}
|
|
QPointF Pos() const {return position;}
|
|
float Angl() const {return angle;}
|
|
int indexPix() const {return PicIndex;}
|
|
QVector<QPointF> path;
|
|
private:
|
|
int ** TmpCells;
|
|
games *game;
|
|
QPointF position;
|
|
float angle;
|
|
//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;
|
|
|
|
int WaveTrace(QPoint start, QPoint finish);
|
|
QVector<QPoint> InvWaveTrace(QPoint finish, int cnt);
|
|
};
|
|
|
|
#endif // ALIEN_H
|