summaryrefslogtreecommitdiff
path: root/src/game-server/character.hpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-10-01 00:26:38 -0400
committerChuck Miller <shadowmil@gmail.com>2009-10-01 09:22:40 -0400
commitf5fdb19e7aac292cca31ec23250587e0d97d0ff6 (patch)
treec0b9aa0ad1040fce1e3ab601aee7bcb489a3d343 /src/game-server/character.hpp
parent54217640c85a97341df7395a9acc39a0b819692d (diff)
downloadmanaserv-f5fdb19e7aac292cca31ec23250587e0d97d0ff6.tar.gz
manaserv-f5fdb19e7aac292cca31ec23250587e0d97d0ff6.tar.bz2
manaserv-f5fdb19e7aac292cca31ec23250587e0d97d0ff6.tar.xz
manaserv-f5fdb19e7aac292cca31ec23250587e0d97d0ff6.zip
Adds code for saving and getting status effects from the database
Diffstat (limited to 'src/game-server/character.hpp')
-rw-r--r--src/game-server/character.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/game-server/character.hpp b/src/game-server/character.hpp
index 603a4a16..2ffb9eeb 100644
--- a/src/game-server/character.hpp
+++ b/src/game-server/character.hpp
@@ -277,6 +277,18 @@ class Character : public Being
{ return mExperience.end(); }
/**
+ * used to serialized status effects
+ */
+ int getStatusEffectSize() const
+ { return mStatusEffects.size(); }
+
+ const std::map<int, int>::const_iterator getStatusEffectBegin() const
+ { return mStatusEffects.begin(); }
+
+ const std::map<int, int>::const_iterator getStatusEffectEnd() const
+ { return mStatusEffects.end(); }
+
+ /**
* Gets total accumulated exp for skill
*/
int getExperience(int skill) const
@@ -391,6 +403,9 @@ class Character : public Being
std::map<int, int> mExperience; /**< experience collected for each skill.*/
std::map<int, Special*> mSpecials;
+ std::map<int, int> mStatusEffects; /**< only used by select functions
+ to make it easier to make the accountserver
+ do not modify or use anywhere else*/
int mRechargePerSpecial;
bool mSpecialUpdateNeeded;