summaryrefslogtreecommitdiff
path: root/src/game-server/character.hpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-07-08 19:37:20 +0200
committerPhilipp Sehmisch <crush@themanaworld.org>2009-07-08 19:37:20 +0200
commitc04d6befd07a57331a3ea3f360261d80fa9a0e69 (patch)
treee55879ab9998febd5966b4d16279fb13c2ccfe37 /src/game-server/character.hpp
parent5b56b981f9957597f8fb9761c7cac77b88761c52 (diff)
downloadmanaserv-c04d6befd07a57331a3ea3f360261d80fa9a0e69.tar.gz
manaserv-c04d6befd07a57331a3ea3f360261d80fa9a0e69.tar.bz2
manaserv-c04d6befd07a57331a3ea3f360261d80fa9a0e69.tar.xz
manaserv-c04d6befd07a57331a3ea3f360261d80fa9a0e69.zip
Sending spell recharge status to the clients
Diffstat (limited to 'src/game-server/character.hpp')
-rw-r--r--src/game-server/character.hpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/game-server/character.hpp b/src/game-server/character.hpp
index 5eb9198e..ea979184 100644
--- a/src/game-server/character.hpp
+++ b/src/game-server/character.hpp
@@ -239,10 +239,10 @@ class Character : public Being
void setMapId(int);
/**
- * Over loads Being::getAttribute, character skills are
+ * Over loads Being::getAttribute, character skills are
* treated as extend attributes
*/
- int getAttribute(int) const;
+ int getAttribute(int) const;
/**
* Over loads Being::getModifiedAttribute
@@ -277,7 +277,7 @@ class Character : public Being
const std::map<int, int>::const_iterator getSkillBegin() const
{ return mExperience.begin(); }
-
+
const std::map<int, int>::const_iterator getSkillEnd() const
{ return mExperience.end(); }
@@ -377,6 +377,11 @@ class Character : public Being
*/
void recalculateLevel();
+ /**
+ * Informs the client about his characters special charge status
+ */
+ void sendSpecialUpdate();
+
enum TransactionType
{ TRANS_NONE, TRANS_TRADE, TRANS_BUYSELL };
@@ -393,6 +398,8 @@ class Character : public Being
std::map<int, int> mExperience; /**< experience collected for each skill.*/
std::map<int, Special*> mSpecials;
+ int mRechargePerSpecial;
+ bool mSpecialUpdateNeeded;
int mDatabaseID; /**< Character's database ID. */
unsigned char mGender; /**< Gender of the character. */