-
Notifications
You must be signed in to change notification settings - Fork 0
/
Knight.h
51 lines (34 loc) · 958 Bytes
/
Knight.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
/**************************************************
Project: The Tamer, the Arigamo and the Fuhai Gem
Task: Assignment 2 + 3
Author: Sean Lee
Purpose: Dark Knight Class Header File
The Header file for the Dark Knight class Hazard.
**************************************************/
#ifndef KNIGHT_H
#define KNIGHT_H
#include <string>
#include <sstream>
#include <vector>
#include "CommonFuncs.h"
#include "GameEnums.h"
#include "Hazard.h"
#include "Player.h"
using namespace std;
class Knight : public Hazard {
private:
int damageAmount;
public:
// constructors and destructors
Knight();
Knight(string name, HazardType type, string hint, vector<string> description, bool roaming, bool conscious, int damage);
~Knight();
// acccessor methods
int getDamageAmount();
string getDetails();
// mutator methods
void setDamageAmount(int damage);
// hazard turn update methods
vector<string> updateInteraction(Player& player);
};
#endif