-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathModuleEnemy.h
More file actions
44 lines (34 loc) · 705 Bytes
/
ModuleEnemy.h
File metadata and controls
44 lines (34 loc) · 705 Bytes
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 __ModuleEnemy_H__
#define __ModuleEnemy_H__
#include "Module.h"
#include "Animation.h"
#include "Globals.h"
#include "p2Point.h"
struct SDL_Texture;
struct Collider;
typedef unsigned int Uint32;
struct Enemy {
SDL_Texture* graphics = nullptr;
Animation forward;
iPoint position;
Collider* collider;
bool dead = false;
};
class ModuleEnemy : public Module
{
public:
ModuleEnemy();
~ModuleEnemy();
bool Start();
update_status Update();
bool CleanUp();
void OnCollision(Collider* collider1, Collider* collider2);
public:
Enemy enemies[30];
Enemy Powerups[15];
Uint32* start_time = 0;
Uint32* spawn_delay;
Animation anim1;
Animation animpower;
};
#endif // __ModuleEnemy_H__