added some tables, add upgrade

now not reading tables:
	morphs
	chains
	upgrades
	towersOnLevel
This commit is contained in:
2010-08-22 08:57:31 +03:00
parent da42fe8f58
commit 7099e17901
5 changed files with 261 additions and 86 deletions

View File

@@ -34,6 +34,46 @@ struct Tower
};
struct srcTrigger
{
enum triggerType
{
onDestination,
onTimer,
onAlienInRadius
};
int childId; // =-1 for non birth splash (e.q. only damage)
bool delParent;
float damage;
float radius;
triggerType type;
unsigned int timer;
int count;
float randomPosRadius;
};
struct srcSplash
{
QString name;
int imgType;
float speed; // in cells
bool autoControl;
QList <int> triggerIndexes;
};
struct srcTower
{
QString name;
int type;
int PlayerId; // tower's owner
float range; // in cells
float reload; // time for reload in ticks
QList <srcTrigger> triggers;
QList <srcSplash> splashes;
};
struct Splash
{
int Id;