diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-07-03 22:17:18 +0200 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-07-03 22:28:02 +0200 |
commit | 346d68307553c18777df4c49f9b3fe57955c5c0d (patch) | |
tree | d27d3fff4f5a366f597ae83d3fb62e2dbd4d69bf /src/localplayer.h | |
parent | e0de8a124bf94b79d9d64e5406b21e8598a05d56 (diff) | |
download | mana-346d68307553c18777df4c49f9b3fe57955c5c0d.tar.gz mana-346d68307553c18777df4c49f9b3fe57955c5c0d.tar.bz2 mana-346d68307553c18777df4c49f9b3fe57955c5c0d.tar.xz mana-346d68307553c18777df4c49f9b3fe57955c5c0d.zip |
Implemented display of spell recharge information from server in the magic gui (very, very hackish)
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index 85681e03..0a3f742b 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -36,6 +36,13 @@ class Map; #ifdef TMWSERV_SUPPORT +struct Special +{ + int currentMana; + int neededMana; + int recharge; +}; + /** * Attributes used during combat. Available to all the beings. */ @@ -215,6 +222,11 @@ class LocalPlayer : public Player #ifdef TMWSERV_SUPPORT void useSpecial(int id); + + void setSpecialStatus(int id, int current, int max, int recharge); + + const std::map<int, Special> &getSpecialStatus() const + { return mSpecials; } #endif void attack(Being *target = NULL, bool keep = false); @@ -450,6 +462,8 @@ class LocalPlayer : public Player int mCharacterPoints; int mCorrectionPoints; int mLevelProgress; + std::map<int, Special> mSpecials; + char mSpecialRechargeUpdateNeeded; #endif int mLevel; int mMoney; |