added Towers loading in level

This commit is contained in:
unknown
2010-08-26 14:39:52 +04:00
parent 47cf1e38ea
commit b3854e867d
7 changed files with 247 additions and 119 deletions

View File

@@ -10,8 +10,8 @@
struct tbHeader
{
int id;
QString name;
int id;
QString name;
};
struct tbAlien : tbHeader
@@ -36,26 +36,12 @@ struct tbSplash : tbHeader
struct tbTrigger : tbHeader
{
enum triggerType
{
onDestination,
onTimer,
onAlienInRadius
};
enum aimType
{
noAim,
parentAim,
allSide,
nearlestAlien
};
float damage;
float radius;
int chance;
bool delParent;
aimType childAim;
triggerType type;
srcTriggerType::aimType childAim;
srcTriggerType::triggerType type;
unsigned int timer;
int count;
float randomPosRadius;
@@ -191,6 +177,7 @@ private:
void readWaveParts();
void readUpgrades();
void fillTowerChains(QList <tbChain> * chlist, QList <int> * trigIds, srcTowerType * stt, int parId, int parIndex, int * recursiveCheck);
void validate(QString filename);
QString CreateMapExample();
};