summaryrefslogtreecommitdiff
path: root/engine/bulletpattern.h
blob: 8df7945146d59809f1b47c1245e9b84a467c2bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef BULLETPATTERN_H
#define BULLETPATTERN_H

#include "vector.h"

class BulletPattern {
	protected:
		float* bullets;
		unsigned int num_bullets;
		unsigned int stride;
		unsigned int steps;
	public:
		float color_r, color_g, color_b;
		
		virtual void update() = 0;
		void draw();
};

class BulletPattern1 : public BulletPattern {
	public:
		BulletPattern1(const Vector2& initpos);
		void update();
};

class BulletPattern2 : public BulletPattern {
	public:
		BulletPattern2(const Vector2& initpos);
		void update();
};

class BulletPattern3 : public BulletPattern {
	public:
		BulletPattern3(const Vector2& initpos);
		void update();
};

#endif