now this work stable

global restruct fuinish part 1 of 3
This commit is contained in:
2010-02-07 16:18:29 +03:00
parent 6a11d7fbcd
commit 3f8971b113
16 changed files with 157 additions and 110 deletions

14
alien.h
View File

@@ -1,24 +1,26 @@
#ifndef ALIEN_H
#define ALIEN_H
#include "basestruct.h"
#include "games.h"
class Alien
{
public:
Alien(GameData * AlienData, float alienspeed = 0.1);
Alien(games *parent, float alienspeed = 0.1);
bool RecreatePath();
//bool testTrace() {return (WaveTrace(data->start,data->finish) > 0);}
void setPos(QPoint pos) {Position.pnt = pos;}
void setPos(QPointF pos) {position = pos;}
void update();
void resetIndexPic() {PicIndex = 0;}
FPVector pos() const {return Position;}
QPointF Pos() const {return position;}
float Angl() const {return angle;}
int indexPix() const {return PicIndex;}
QVector<QPointF> path;
private:
int ** TmpCells;
GameData * data;
FPVector Position;
games *game;
QPointF position;
float angle;
//int PicType;
//int FlX;
//int FlY;