summaryrefslogtreecommitdiff
path: root/src/game-server/character.hpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-11-01 01:41:12 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-11-01 01:41:12 +0000
commitad5efe104cd7639009622393f16bfd93075fcb34 (patch)
treef9618bffd5e38c9f50722d36d4d77e8bfea06168 /src/game-server/character.hpp
parent3ec0d0f152be4381dc843bc1ca99f8731c8fb366 (diff)
downloadmanaserv-ad5efe104cd7639009622393f16bfd93075fcb34.tar.gz
manaserv-ad5efe104cd7639009622393f16bfd93075fcb34.tar.bz2
manaserv-ad5efe104cd7639009622393f16bfd93075fcb34.tar.xz
manaserv-ad5efe104cd7639009622393f16bfd93075fcb34.zip
Added script bindings for manipulating the characters experience.
Diffstat (limited to 'src/game-server/character.hpp')
-rw-r--r--src/game-server/character.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game-server/character.hpp b/src/game-server/character.hpp
index 30914344..03006712 100644
--- a/src/game-server/character.hpp
+++ b/src/game-server/character.hpp
@@ -248,6 +248,11 @@ class Character : public Being
{ mExperience[skill] = 0; receiveExperience(skill + CHAR_SKILL_BEGIN , value) ; }
/**
+ * Returns the exp needed to reach a specific skill level
+ */
+ static int expForLevel(int level);
+
+ /**
* Tries to use a character point to increase a
* basic attribute
*/
@@ -301,11 +306,6 @@ class Character : public Being
void flagAttribute(int);
/**
- * Returns the exp needed to reach a specific skill level
- */
- static int expForLevel(int level);
-
- /**
* Returns the exp needed for next skill levelup
*/
int getExpNeeded(size_t skill);