-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pit.cpp
49 lines (30 loc) · 1.07 KB
/
Pit.cpp
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
/**************************************************
Project: The Tamer, the Arigamo and the Fuhai Gem
Task: Assignment 2 + 3
Author: Sean Lee
Purpose: Bottomless Pit Class Definition File
The Definition file for the Bottomless Pit class Hazard.
**************************************************/
#include "Pit.h"
//-------------------------------------//
// constructors and destructors //
//-------------------------------------//
Pit::Pit() {
}
Pit::Pit(string name, HazardType type, string hint, vector<string> description, bool roaming, bool conscious) : Hazard(name, type, hint, description, roaming, conscious) {
}
Pit::~Pit() {
}
//-------------------------------------//
// hazard turn update methods //
//-------------------------------------//
vector<string> Pit::updateInteraction(Player& player) {
// the bottomless pit's interaction with the player
vector<string> results;
setHasInteracted(true);
player.kill();
results.push_back(eventDescriptions[0]);
results.push_back(eventDescriptions[1]);
results.push_back("$");
return results;
}