summaryrefslogtreecommitdiff
path: root/engine/enemy.h
blob: 9a5c4d3f902ed0b051ba9e76f45e60b7f8d19cb5 (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
38
39
40
41
42
43
44
#ifndef ENEMY_H
#define ENEMY_H

#include <wriggle/vector.h>
#include <wriggle/texture.h>
#include "bulletpattern.h"

#include <vector>

class Enemy {
	protected:
		Vector2 pos;
		Texture* texture;
		std::vector<BulletPattern*>& patterns;
	
	public:
		Enemy(const Vector2& initpos, std::vector<BulletPattern*>& stage_patterns);
		
		virtual void update();
		
		void draw();
};

class Enemy1 : public Enemy {
	protected:
		unsigned int steps;

	public:
		Enemy1(const Vector2& initpos, std::vector<BulletPattern*>& stage_patterns);

		virtual void update();
};

class Enemy2 : public Enemy {
	protected:
		unsigned int steps;

	public:
		Enemy2(const Vector2& initpos, std::vector<BulletPattern*>& stage_patterns);

		virtual void update();
};

#endif