Core is realy wait for work and test
Aliens create, wavetrace work, towers build, aliens move - thats all by now. I think it is time to write Graphic and Network modules.
This commit is contained in:
@@ -14,6 +14,7 @@ struct Alien
|
||||
float health;
|
||||
QPoint finish;
|
||||
QVector <QPointF> path;
|
||||
int pathIndex;
|
||||
unsigned int gold;
|
||||
};
|
||||
|
||||
@@ -23,10 +24,11 @@ struct Tower
|
||||
int Id;
|
||||
int type;
|
||||
int AlienId; // aim alien
|
||||
int PlayerId; // tower's owner
|
||||
QPoint pos; // not QPointF because tower fixed on grid
|
||||
float angle; // -180 .. 180
|
||||
float range;
|
||||
float speed; // shots per tick (e.g. speed=1 is 60 shots by 1sec for 60fps e.g. )
|
||||
float reload; // time for reload in ticks
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user