I think finished structures

and some changes in loading
and changes in map class
we have 2 TODO now
This commit is contained in:
2010-08-22 21:55:29 +03:00
parent f6125014dd
commit 191e5ed1a1
14 changed files with 178 additions and 133 deletions

View File

@@ -37,7 +37,8 @@ struct srcAlienType
struct TowerType
{
int src;
int AlienId; // aim alien
int aim; // aim alien Id
int oldAim;
int PlayerId; // tower's owner
int imgType;
QPoint pos; // not QPointF because tower fixed on grid
@@ -100,7 +101,6 @@ struct SplashType
int imgType;
int src;
QPoint TowerId; // parent tower (-1;-1) for null parent
int PlayerId;
int AlienId; // aim alien (different from tower.AlienId)
QPointF destination;
int life; // in ticks
@@ -109,13 +109,13 @@ struct SplashType
};
struct Wave
struct WaveType
{
int Id;
QList <int> types; // some types of aliens (e.g. 2 fly and 3 grount in one wave)
QList <int> counts; // count aliens of each type
int wait_time; // time in ticks
unsigned int gold;
unsigned int timeout; // time in ticks
unsigned int prise;
};