Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-06-07 18:13:15 +0000
committerStijn Buys <ingar@osirion.org>2009-06-07 18:13:15 +0000
commitf33257521bf80dcef8575c4fc3ddaf4a40ff588a (patch)
tree5e3a112e814478ba3ab624e0867761654a5ea0a4 /src/core/item.cc
parent5b94df1df2707b36401d91d80b92d0e4cdfd2277 (diff)
fixed a few widget order problems, changed map targetting behaviour
Diffstat (limited to 'src/core/item.cc')
-rw-r--r--src/core/item.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/core/item.cc b/src/core/item.cc
index ed73cb6..116685b 100644
--- a/src/core/item.cc
+++ b/src/core/item.cc
@@ -9,24 +9,24 @@
namespace core
{
-Item::Item(const unsigned int itemclass, const unsigned int itemtype, const char *infolabel)
+ItemClass::ItemClass(const char *label)
{
- item_class = itemclass;
- item_type = itemtype;
- item_amount = 0;
-
- if (infolabel) {
- item_infolabel.assign(infolabel);
+ if (label) {
+ itemclass_label.assign(label);
} else {
- item_infolabel.clear();
+ itemclass_label.clear();
}
}
-Item::~Item()
+ItemType::ItemType(const char *label)
{
- item_class = 0;
- item_type = 0;
- item_amount = 0;
+ if (label) {
+ itemtype_label.assign(label);
+ } else {
+ itemtype_label.clear();
+ }
+
+ itemtype_baseprice = 0;
}
-} \ No newline at end of file
+}