diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-27 15:53:10 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-27 15:53:10 +0000 |
commit | 2922e40cae58bbddf629733a9a7865f2a00ed9e1 (patch) | |
tree | 0ab7a3b6b7c09a180ece61daed219e914f1534f5 /src/game-server/character.hpp | |
parent | 518168ad7859ba214a79c48459e8053391339d68 (diff) | |
download | manaserv-2922e40cae58bbddf629733a9a7865f2a00ed9e1.tar.gz manaserv-2922e40cae58bbddf629733a9a7865f2a00ed9e1.tar.bz2 manaserv-2922e40cae58bbddf629733a9a7865f2a00ed9e1.tar.xz manaserv-2922e40cae58bbddf629733a9a7865f2a00ed9e1.zip |
Added support for user commands. Implemented "warp" and "item".
Diffstat (limited to 'src/game-server/character.hpp')
-rw-r--r-- | src/game-server/character.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game-server/character.hpp b/src/game-server/character.hpp index 62245fc7..2cf4500c 100644 --- a/src/game-server/character.hpp +++ b/src/game-server/character.hpp @@ -176,6 +176,14 @@ class Character : public Being setLevel(int level) { mLevel = level; } + /** Gets the account level of the user. */ + int getAccountLevel() const + { return mAccountLevel; } + + /** Sets the account level of the user. */ + void setAccountLevel(int l) + { mAccountLevel = l; } + /** * Sends a message that informs the client about attribute * modified since last call. @@ -226,6 +234,7 @@ class Character : public Being unsigned char mHairStyle; /**< Hair Style of the character. */ unsigned char mHairColor; /**< Hair Color of the character. */ unsigned char mLevel; /**< Level of the character. */ + unsigned char mAccountLevel; /**< Account level of the user. */ TransactionType mTransaction; /**< Trade/buy/sell action the character is involved in. */ }; |