X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FUpgrade.h;fp=src%2Fcommon%2FUpgrade.h;h=0a5c079e1a91b76bafe4b26d68bcbe3836eb16ce;hb=3d69f521b593457304b282e5f23e36ab165288b6;hp=0000000000000000000000000000000000000000;hpb=8f4cb4e8ad954ba73fb78a030c969c933a7ed60c;p=l2e.git diff --git a/src/common/Upgrade.h b/src/common/Upgrade.h new file mode 100644 index 0000000..0a5c079 --- /dev/null +++ b/src/common/Upgrade.h @@ -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