From 02d326cd9540cdf3aeffceb35ceac2d0fc03faf0 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 23 May 2010 20:14:44 +0200 Subject: Added initpos-vectors to BulletPatterns. --- engine/bulletpattern.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'engine/bulletpattern.h') 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(); }; -- cgit v1.2.3