diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-05-23 20:14:44 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-05-23 20:14:44 +0200 |
commit | 02d326cd9540cdf3aeffceb35ceac2d0fc03faf0 (patch) | |
tree | 7dbff53a9d5521a262f0c640fc1d9729a37e8d33 /engine/bulletpattern.h | |
parent | 9e9140cdf95845c580ba084342033094e928c6e8 (diff) |
Added initpos-vectors to BulletPatterns.
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(); }; |