-
Notifications
You must be signed in to change notification settings - Fork 0
/
Enemy.h
44 lines (37 loc) · 838 Bytes
/
Enemy.h
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
#pragma once
#include <vector>
#include "GameObject.h"
#include "Bullet.h"
#include <vector>
#include <algorithm>
using namespace std;
class Enemy
{
protected:
int enemyHealth;
int enemyArmor;
bool attacking;
bool dead;
int exp;
float radius;
int shootingFrames;
int damageFrames;
vector<GameObject*> objs;
vector<Bullet*> bullets;
public:
Enemy(void);
virtual ~Enemy(void);
bool isDead();
bool isHostile();
vector<GameObject*> getModels();
vector<Bullet*> getBullets();
virtual void translate(float, float, float)=0;
virtual void rotateX(float)=0;
virtual void rotateY(float)=0;
virtual void rotateZ(float)=0;
virtual XMFLOAT3 getPosition()=0;
float getRadius();
bool damage(int dmg);
int getExp();
virtual bool update(XMFLOAT3 pos, ID3D11Device* device)=0;
};