diff options
Diffstat (limited to 'engine/bulletpattern.h')
-rw-r--r-- | engine/bulletpattern.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/engine/bulletpattern.h b/engine/bulletpattern.h index e1dd3a2..8df7945 100644 --- a/engine/bulletpattern.h +++ b/engine/bulletpattern.h @@ -1,6 +1,8 @@ #ifndef BULLETPATTERN_H #define BULLETPATTERN_H +#include "vector.h" + class BulletPattern { protected: float* bullets; @@ -9,21 +11,26 @@ class BulletPattern { unsigned int steps; public: float color_r, color_g, color_b; - - BulletPattern(); - virtual void update(); + + virtual void update() = 0; void draw(); }; class BulletPattern1 : public BulletPattern { public: - BulletPattern1(); + BulletPattern1(const Vector2& initpos); void update(); }; class BulletPattern2 : public BulletPattern { public: - BulletPattern2(float xpos, float ypos); + BulletPattern2(const Vector2& initpos); + void update(); +}; + +class BulletPattern3 : public BulletPattern { + public: + BulletPattern3(const Vector2& initpos); void update(); }; |