added animation

but not full in ADeditor
This commit is contained in:
2010-09-05 16:25:23 +04:00
parent c898f978da
commit 8fa6b8e2a6
24 changed files with 924 additions and 725 deletions

View File

@@ -13,6 +13,8 @@
#include <QSize>
#include <QRect>
#include <QRectF>
#include <QImage>
#include <QStringList>
struct srcAlienType
@@ -41,7 +43,7 @@ struct AlienType
QVector <QPointF> path;
int pathIndex;
int imgType;
float animIndex;
int animIndex;
};
@@ -108,6 +110,7 @@ struct SplashType
{
int id;
int imgType;
int animIndex;
int src;
QPoint TowerId; // parent tower (-1;-1) for null parent
int srcTower;
@@ -147,6 +150,7 @@ struct TowerType
int oldAim;
int PlayerId; // tower's owner
int imgType;
int animIndex;
QPoint pos; // not QPointF because tower fixed on grid
float angle; // -180 .. 180
unsigned int reload; // time for reload in ticks
@@ -155,6 +159,12 @@ struct TowerType
};
struct AnimationType
{
QList<QImage * > images;
};
struct WaveType
{
QList <int> types; // some types of aliens (e.g. 2 fly and 3 grount in one wave)