]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/LevelUp.h
put stat increments in level ladder
[l2e.git] / src / common / LevelUp.h
diff --git a/src/common/LevelUp.h b/src/common/LevelUp.h
new file mode 100644 (file)
index 0000000..9637eee
--- /dev/null
@@ -0,0 +1,35 @@
+#ifndef COMMON_LEVELUP_H_
+#define COMMON_LEVELUP_H_
+
+#include "Stats.h"
+
+
+namespace common {
+
+struct LevelUp
+: public Stats {
+
+public:
+       static const int TYPE_ID = 309;
+
+public:
+       LevelUp();
+
+public:
+       int Experience() const { return experience; }
+       int MaxHealth() const { return maxHealth; }
+       int MaxMagic() const { return maxMagic; }
+
+       static void CreateTypeDescription();
+       static void Construct(void *);
+
+private:
+       int experience;
+       int maxHealth;
+       int maxMagic;
+
+};
+
+}
+
+#endif