]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Upgrade.h
moved upgrade process to battle class
[l2e.git] / src / common / Upgrade.h
diff --git a/src/common/Upgrade.h b/src/common/Upgrade.h
new file mode 100644 (file)
index 0000000..0a5c079
--- /dev/null
@@ -0,0 +1,41 @@
+#ifndef COMMON_UPGRADE_H_
+#define COMMON_UPGRADE_H_
+
+namespace common {
+
+class Upgrade {
+
+public:
+       enum Type {
+               LEVEL_UP,
+               MAX_HEALTH,
+               MAX_MAGIC,
+               ATTACK,
+               DEFENSE,
+               STRENGTH,
+               AGILITY,
+               INTELLIGENCE,
+               GUT,
+               MAGIC_RSISTANCE,
+               LEVEL_NEXT,
+       };
+
+public:
+       Upgrade(const char *name, Type type, int amount)
+       : name(name), type(type), amount(amount) { }
+
+public:
+       const char *Name() const { return name; }
+       Type GetType() const { return type; }
+       int Amount() const { return amount; }
+
+private:
+       const char *name;
+       Type type;
+       int amount;
+
+};
+
+}
+
+#endif