added animation
but not full in ADeditor
This commit is contained in:
12
base_types.h
12
base_types.h
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user