-
Notifications
You must be signed in to change notification settings - Fork 0
/
HazardContainer.h
55 lines (37 loc) · 1020 Bytes
/
HazardContainer.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
/**************************************************
Project: The Tamer, the Arigamo and the Fuhai Gem
Task: Assignment 2 + 3
Author: Sean Lee
Purpose: Hazard Container Class Header File
The Header file for the Hazard Container class which
serves as a custom container for the game's hazards.
**************************************************/
#ifndef HAZARDCONTAINER_H
#define HAZARDCONTAINER_H
#include <vector>
#include <string>
#include <sstream>
#include "CommonFuncs.h"
#include "GameEnums.h"
#include "Hazard.h"
using namespace std;
class HazardContainer {
private:
vector<Hazard*> hazards;
public:
// constructors and destructors
HazardContainer();
~HazardContainer();
// accessor methods
Hazard* getHazard(int ID);
Hazard* getHazard(string hazardName);
Hazard* getLastHazard();
int getNumHazards();
int getNumRoamingHazards();
string getAllHazardInfo();
vector<Hazard*>* getHazardsVector();
// mutator methods
void addHazard(Hazard* hazard);
void removeHazard(int ID);
};
#endif