-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.hpp
51 lines (44 loc) · 1.03 KB
/
player.hpp
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
/***********************************************************
**CLASS: PLAYER
**
**DESCRIPTION: HPP FILE
**
**This class contains the player's current location, the
**number of items they have collected, the vector of items
**(strings) and also the iterator for the vector.
***********************************************************/
#ifndef PLAYER_hpp
#define PLAYER_hpp
#include <iostream>
#include <string>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include "Era.hpp"
using namespace std;
class Player
{
private:
string currentLocation;
int numberOfItems;
std::vector<string> deLorean;
std::vector<string>::iterator iter;
public:
Player();
/*
**GET METHODS
*/
string getCurrentLocation();
int getNumberOfItems();
/*
**SET METHODS
*/
void setCurrentLocation(string);
void addNumberOfItems(int);
void cleanDeLorean();
void add(string);
void displayItems();
void remove(string);
bool findIt(string);
};
#endif