some bugfix in splashes

This commit is contained in:
2010-08-31 00:12:48 +04:00
parent 2a13131366
commit 92133b9b6d
8 changed files with 152 additions and 53 deletions

View File

@@ -62,6 +62,7 @@ struct srcTriggerType
nearlestAlien
};
int childId; // =-1 for none birth splash (e.q. only damage)
aimType childAim;
bool delParent;
float damage;
float radius;
@@ -72,13 +73,26 @@ struct srcTriggerType
};
struct TriggerType
struct TriggerOnDest
{
int src;
};
struct TriggerOnTimer
{
int src;
unsigned int timer;
};
struct TriggerOnAlien
{
int src;
QList <int> triggerAliens;
};
struct srcSplashType
{
QString name;
@@ -96,12 +110,16 @@ struct SplashType
int imgType;
int src;
QPoint TowerId; // parent tower (-1;-1) for null parent
int srcTower;
int PlayerId;
int AlienId; // aim alien (different from tower.AlienId)
QPointF destination;
int life; // in ticks
float angle; // -180 .. 180
QPointF pos;
QList <TriggerType> triggers;
QList <TriggerOnAlien> trigsOnAlien;
QList <TriggerOnDest> trigsOnDest;
QList <TriggerOnTimer> trigsOnTimer;
};