-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinventory.hpp
More file actions
executable file
·47 lines (41 loc) · 1.1 KB
/
inventory.hpp
File metadata and controls
executable file
·47 lines (41 loc) · 1.1 KB
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
/*********************************************************************************************************
** Program Filename: inventory.hpp
** Author: Edwin Grove
** Date: 3/11/2016
** Description: The header file for the inventory class
** Input: None
** Output: None
**********************************************************************************************************/
#ifndef INVENTORY_HPP
#define INVENTORY_HPP
#include <string>
#include <iostream>
#include <vector>
#include <utility>
class inventory
{
public:
inventory();
~inventory() {}
void addItem(std::string s);
bool checkItems();
bool checkForItem(std::string item);
void printItems();
void spacesLeft();
private:
std::vector<std::pair<int, std::string> > items;
std::string backpack;
std::string feather;
std::string pillow;
std::string book;
std::string guitar;
std::string catFood;
std::string bedroom;
std::string movieRoom;
std::string buildRoom;
std::string subRoom;
std::string abstractRoom;
std::string senseRoom;
std::vector<std::string> itemRooms;
};
#endif // !INVENTORY_HPP