Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
blob: a029674198998db7e51447477de3616f824308c7 (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
34
35
/*
   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 unsigned int class_id, const unsigned int info_id)
{
	item_class_id = class_id;
	item_info_id = info_id;
	
	item_amount = 0;
	item_info = Info::find(info_id);
}

Item::~Item()
{
	item_amount = 0;
}

void Item::set_amount(const int amount)
{
	item_amount = amount;
}

} // namespace core