#ifndef PROJECTILE_HH
#define PROJECTILE_HH
class Projectile;
#include "PhysicsObject.hh"
#include "GameState.hh"
#include "Timer.hh"
class Projectile : public PhysicsObject {
protected:
GameState &state;
bool visible;
bool target_visible;
bool destroyed;
float radius;
public:
TickCount birth_tick;
TickCount age;
Projectile(GameState &state, Vector position, Vector velocity, bool visible, float radius, TickCount age=1000000000);
~Projectile() {};
bool isDestroyed (void) const;
virtual void draw(CL_GraphicContext *gc) const;
private:
virtual void onCollision();
};
#endif