blob: a6cc89ff50a4fcbed7bc339b29b46fe4c851f826 (
plain)
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
|
/*
core/item.cc
This file is part of the Osirion project and is distributed under
the terms of the GNU General Public License version 2
*/
#include "core/item.h"
#include "sys/sys.h"
namespace core
{
/* ---- class Item ------------------------------------------------- */
Item::Item(const Info *info)
{
item_info = info;
item_amount = 0;
}
Item::~Item()
{
item_info = 0;
item_amount = 0;
}
void Item::set_amount(const int amount)
{
item_amount = amount;
}
} // namespace core
|