added some tables, add upgrade
now not reading tables: morphs chains upgrades towersOnLevel
This commit is contained in:
47
loader.h
47
loader.h
@@ -18,6 +18,8 @@ struct tbAlien
|
||||
float health;
|
||||
float armor;
|
||||
float regeneration;
|
||||
bool isFlying;
|
||||
unsigned int score;
|
||||
int imgType;
|
||||
unsigned int prise;
|
||||
};
|
||||
@@ -27,7 +29,6 @@ struct tbSplash
|
||||
int id;
|
||||
QString name;
|
||||
float speed;
|
||||
float radius;
|
||||
unsigned int lifetime;
|
||||
bool autoControl;
|
||||
int imgType;
|
||||
@@ -41,8 +42,21 @@ struct tbTrigger
|
||||
onTimer,
|
||||
onAlienInRadius
|
||||
};
|
||||
|
||||
enum aimType
|
||||
{
|
||||
noAim,
|
||||
parentAim,
|
||||
allSide,
|
||||
nearlestAlien
|
||||
};
|
||||
int id;
|
||||
QString name;
|
||||
float damage;
|
||||
float radius;
|
||||
int chance;
|
||||
bool delParent;
|
||||
aimType childAim;
|
||||
triggerType type;
|
||||
unsigned int timer;
|
||||
int count;
|
||||
@@ -54,13 +68,33 @@ struct tbTower
|
||||
int id;
|
||||
QString name;
|
||||
float radius;
|
||||
unsigned int price;
|
||||
unsigned int cost;
|
||||
unsigned int reload;
|
||||
unsigned int buildTime;
|
||||
float expByShot;
|
||||
float expByKill;
|
||||
float expByDamage;
|
||||
int splashId;
|
||||
int imgType;
|
||||
};
|
||||
|
||||
struct tbChain
|
||||
{
|
||||
int towerId;
|
||||
int parentSplashId;
|
||||
int childSplashId;
|
||||
int triggerId;
|
||||
};
|
||||
|
||||
struct tbUpgrade
|
||||
{
|
||||
int towerId;
|
||||
int triggerId;
|
||||
unsigned int cost;
|
||||
float towRadius;
|
||||
unsigned int towReload;
|
||||
float trigDamage;
|
||||
float trigDamageRadius;
|
||||
};
|
||||
|
||||
struct tbMorph
|
||||
@@ -105,7 +139,7 @@ struct tbTowerOnLevel
|
||||
{
|
||||
int levelId;
|
||||
int towerId;
|
||||
int enableWaveId;
|
||||
//int enableWaveId;
|
||||
};
|
||||
|
||||
struct tbLevel
|
||||
@@ -113,6 +147,7 @@ struct tbLevel
|
||||
int id;
|
||||
QString name;
|
||||
int mapId;
|
||||
unsigned int score;
|
||||
};
|
||||
|
||||
|
||||
@@ -135,14 +170,15 @@ private:
|
||||
QHash <int,tbAlien> aliens;
|
||||
QHash <int,tbMap> maps;
|
||||
QHash <int,tbLevel> levels;
|
||||
QHash <int,tbMorph> morphs;
|
||||
QHash <int,tbSplash> splashes;
|
||||
QHash <int,tbTower> towers;
|
||||
QHash <int,tbTowerOnLevel> levTowers;
|
||||
QHash <int,tbTrigger> triggers;
|
||||
QHash <int,tbWave> waves;
|
||||
QMultiHash <int,tbWaveOnLevel> levWaves;
|
||||
QMultiHash <int,tbWavePart> waveParts;
|
||||
QMultiHash <int,tbChain> chains;
|
||||
QMultiHash <int,tbMorph> morphs;
|
||||
QMultiHash <int,tbTowerOnLevel> levTowers;
|
||||
|
||||
void readAliens();
|
||||
void readMaps();
|
||||
@@ -152,6 +188,7 @@ private:
|
||||
void readTowers();
|
||||
void readLevTowers();
|
||||
void readTriggers();
|
||||
void readChains();
|
||||
void readWaves();
|
||||
void readLevWaves();
|
||||
void readWaveParts();
|
||||
|
||||
Reference in New Issue
Block a user