-
Notifications
You must be signed in to change notification settings - Fork 0
/
Enemy.h
68 lines (57 loc) · 1.26 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef Enemy_h
#define Enemy_h
#include <string>
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <vector>
#include <utility>
#include "Character.h"
#include "Player.h"
#include "gold.h"
#include "floor.h"
class Potion;
class Player;
class Enemy: public Character{
public:
Enemy(int x, int y, char symbol, int health, int attack, int defense, std::string race);
void enemyDeath(GameObject &p, Floor *g) override;
void action(GameObject &p, Floor *g) override;
/* virtual*/ ~Enemy();
};
class Human: public Enemy{
public:
Human(int x, int y);
void enemyDeath(GameObject &p, Floor *g) override;
};
class Dwarf: public Enemy{
public:
Dwarf(int x, int y);
};
class Elf: public Enemy{
public:
Elf(int x, int y);
};
class Orc: public Enemy{
public:
Orc(int x, int y);
};
class Merchant: public Enemy{
public:
Merchant(int x, int y);
void enemyDeath(GameObject &p, Floor *g) override;
};
class Dragon: public Enemy{
int hoardX, hoardY;
public:
int getHoardX() override;
int getHoardY() override;
void enemyDeath(GameObject &p, Floor *g) override;
Dragon(int x, int y, int hoardX, int hoardY);
};
class Halfling: public Enemy{
public:
Halfling(int x, int y);
};
#endif /* Enemy_h */