repo.or.cz
/
COMP345---Clone.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
initial commit
[COMP345---Clone.git]
/
ItemContainer.h
blob
b96842f6bb7a57fc93e664721089e8410391cf9d
1
#pragma once
2
#include
"Item.h"
3
#include <vector>
4
class
ItemContainer
5
{
6
public
:
7
ItemContainer
();
8
ItemContainer
(
vector
<
Item
>
items
);
9
~
ItemContainer
();
10
Item
getItem
(
int
index
);
11
void
removeItem
(
int
index
);
12
void
removeItem
(
Item item
);
13
void
addItem
(
Item item
);
14
vector
<
Item
>
getItems
() {
return
itemList
; }
15
private
:
16
vector
<
Item
>
itemList
;
17
18
};
19