EchoesOfFate
A game for our COMP315 Project
 
Loading...
Searching...
No Matches
Inventory.h
Go to the documentation of this file.
1
2#ifndef INVENTORY_H
3#define INVENTORY_H
4#include "Item.h"
5#include <string>
6#include <vector>
7
9{
10public:
11 Inventory(vector<Item> itms, string bgPngPath, int AmtSlots);
12 Inventory();
13 virtual ~Inventory();
14 void push(Item item);
15 void pop(Item item, int Amt);
16 Item swap(Item item, int index);
17 void swap(int ind, int index);
18 vector<Item> getItems();
19
20
21protected:
22
23private:
24 std::vector<Item> items;
25 string bgPngPath;
26 int fullSlots;
27 int amtSlots;
28
29
30};
31
32#endif
Inventory()
Definition Inventory.cpp:20
Item swap(Item item, int index)
Definition Inventory.cpp:76
virtual ~Inventory()
Definition Inventory.cpp:25
vector< Item > getItems()
Definition Inventory.cpp:91
void pop(Item item, int Amt)
Definition Inventory.cpp:58
void push(Item item)
Definition Inventory.cpp:31
Inventory(vector< Item > itms, string bgPngPath, int AmtSlots)
Definition Inventory.cpp:4
Definition Item.h:6