// // Created by koncord on 12.08.17. // #pragma once #include #include class LuaState; class Player; class CharClass { public: static void Init(LuaState &lua); public: explicit CharClass(Player *player); ~CharClass(); void update(); std::string getDefault() const; void setDefault(const std::string &className); bool isDefault() const; std::string getName() const; void setName(const std::string &className); std::string getDesc() const; void setDesc(const std::string &desc); std::tuple getMajorAttributes() const; void setMajorAttributes(int first, int second); int getSpecialization() const; void setSpecialization(int spec); std::tuple getMinorSkills() const; void setMinorSkills(int fisrt, int second, int third, int fourth, int fifth); std::tuple getMajorSkills() const; void setMajorSkills(int fisrt, int second, int third, int fourth, int fifth); private: // not controlled pointer Player *player; bool changed; };