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>2014-12-25 15:58:24 +0000
committerStijn Buys <ingar@osirion.org>2014-12-25 15:58:24 +0000
commit8f393ff70e60172c632efc81694433568df2862b (patch)
treeac87596d59ccf27dff0896c97e410643d21185bf /src/core/info.cc
parent8f28c82e2fb26b453a2cfe976e48f74d97d6388a (diff)
Added a core::Level type, added a level attribute to core::Entity and core::Info, updated core::Player to use the new type.
Diffstat (limited to 'src/core/info.cc')
-rw-r--r--src/core/info.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/info.cc b/src/core/info.cc
index ad630a9..3d1b6cc 100644
--- a/src/core/info.cc
+++ b/src/core/info.cc
@@ -77,9 +77,10 @@ Info::Info(const InfoType *type, const char *label) : Label(label)
info_id_counter++;
info_id = info_id_counter;
info_type = type;
- info_registry.push_back(this);
+ info_registry.push_back(this);
info_timestamp = 0;
+ info_level = 1;
info_price = 0;
info_volume = 0;
}
@@ -92,6 +93,7 @@ Info::Info(const unsigned int id)
info_registry.push_back(this);
info_timestamp = 1;
+ info_level = 1;
info_price = 0;
info_volume = 0;
@@ -127,6 +129,11 @@ void Info::set_modelname(const char *modelname)
info_modelname.assign(modelname);
}
+void Info::set_level(const Level level)
+{
+ info_level = level;
+}
+
void Info::set_price(const long price)
{
info_price = price;