-
Notifications
You must be signed in to change notification settings - Fork 6
/
InventoryIndexItem.cpp
69 lines (41 loc) · 1.09 KB
/
InventoryIndexItem.cpp
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
56
57
58
59
60
61
62
63
64
65
66
67
#include <AllegroFlare/InventoryIndexItem.hpp>
namespace AllegroFlare
{
InventoryIndexItem::InventoryIndexItem(std::string title, std::string bitmap_filename, std::string description)
: title(title)
, bitmap_filename(bitmap_filename)
, description(description)
{
}
InventoryIndexItem::~InventoryIndexItem()
{
}
void InventoryIndexItem::set_title(std::string title)
{
this->title = title;
}
void InventoryIndexItem::set_bitmap_filename(std::string bitmap_filename)
{
this->bitmap_filename = bitmap_filename;
}
void InventoryIndexItem::set_description(std::string description)
{
this->description = description;
}
std::string InventoryIndexItem::get_title() const
{
return title;
}
std::string InventoryIndexItem::get_bitmap_filename() const
{
return bitmap_filename;
}
std::string InventoryIndexItem::get_description() const
{
return description;
}
std::tuple<std::string, std::string, std::string> InventoryIndexItem::to_tuple()
{
return std::tuple<std::string, std::string, std::string>(title, bitmap_filename, description);
}
} // namespace AllegroFlare