-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenemy.h
104 lines (85 loc) · 2.83 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#ifndef ENEMY_H
#define ENEMY_H
#include <string>
#include "character.h"
class Enemy: public Character {
private:
//private constructor in the base and derived classes
std::string encount;
std::string defeat;
std::string name;
protected:
Enemy(int hp, int de, int at, string e, string d, string na) :
Character(hp, de, at), encount(e), defeat(d), name(na) {}
public:
//a static method of a class that returns an object of that class type.
static Enemy* createEnemy(int type);
//Setters and getters
void EnemyName(string input);
string EnemyName() const;
void EncounterLine(string input);
string EncounterLine() const;
void DefeatLine(string input);
string DefeatLine() const;
};
class Guard: public Enemy {
friend class Enemy;
Guard(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class Skeleton: public Enemy {
friend class Enemy;
Skeleton(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class Slime: public Enemy {
friend class Enemy;
Slime(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class Slaver: public Enemy {
friend class Enemy;
Slaver(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class Zombie: public Enemy {
friend class Enemy;
Zombie(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class Wolf: public Enemy {
friend class Enemy;
Wolf(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class Byrd: public Enemy {
friend class Enemy;
Byrd(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class Slave: public Enemy {
friend class Enemy;
Slave(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class Rat: public Enemy {
friend class Enemy;
Rat(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class Pettit: public Enemy {
friend class Enemy;
Pettit(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class Reeves: public Enemy {
friend class Enemy;
Reeves(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class StJohn: public Enemy {
friend class Enemy;
StJohn(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class Homer: public Enemy {
friend class Enemy;
Homer(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class Tanner: public Enemy {
friend class Enemy;
Tanner(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
class Burton: public Enemy {
friend class Enemy;
Burton(int hp, int de, int at, string e, string d, string na) : Enemy(hp,de,at,e,d,na) {}
};
#endif