cosmetic changes (e.g. GameData -> gameData)
This commit is contained in:
11
base_types.h
11
base_types.h
@@ -10,7 +10,7 @@ struct Alien
|
||||
int type;
|
||||
QPointF pos;
|
||||
float angle; // -180 .. 180
|
||||
float speed; // cells per thick (speed=1 is 60cells by 1 sec for 60fps e.g.)
|
||||
float speed; // cells per tick (speed=1 is 60cells by 1 sec for 60fps e.g.)
|
||||
float health;
|
||||
QPoint finish;
|
||||
QVector <QPointF> path;
|
||||
@@ -26,7 +26,7 @@ struct Tower
|
||||
QPoint pos; // not QPointF because tower fixed on grid
|
||||
float angle; // -180 .. 180
|
||||
float range;
|
||||
float speed; // shots per thick (e.g. speed=1 is 60 shots by 1sec for 60fps e.g. )
|
||||
float speed; // shots per tick (e.g. speed=1 is 60 shots by 1sec for 60fps e.g. )
|
||||
};
|
||||
|
||||
|
||||
@@ -36,18 +36,19 @@ struct Splash
|
||||
int type;
|
||||
int TowerId; // parent tower
|
||||
int AlienId; // aim alien (different from tower.AlienId)
|
||||
int lifetime; // in msec
|
||||
int lifetime; // in ticks
|
||||
float radius;
|
||||
float angle; // -180 .. 180
|
||||
QPointF pos;
|
||||
};
|
||||
|
||||
|
||||
struct wave
|
||||
struct Wave
|
||||
{
|
||||
int Id;
|
||||
QVector <int> types; // some types of aliens (e.g. 2 fly and 3 grount in one wave)
|
||||
QVector <int> counts; // count aliens of each type
|
||||
int wait_time; // time in sec
|
||||
int wait_time; // time in ticks
|
||||
unsigned int gold;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user