--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Projectile.hh Thu Dec 04 19:53:59 2008 +0000
@@ -0,0 +1,26 @@
+#ifndef PROJECTILE_HH
+#define PROJECTILE_HH
+
+class Shot;
+
+#include "PhysicsObject.hh"
+#include "GameState.hh"
+
+class Shot : public PhysicsObject {
+protected:
+ GameState &state;
+ bool visible;
+ uint32_t birth_tick;
+ uint32_t death_tick;
+ bool target_visible;
+ bool destroyed;
+public:
+ Shot(GameState &state, Vector position, Vector velocity, bool visible);
+
+ bool isDestroyed (void);
+ virtual void draw(CL_GraphicContext *gc);
+private:
+ virtual void onCollision();
+};
+
+#endif