You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
565 B

  1. #ifndef HACKTHEGAME_PLAYER_HPP
  2. #define HACKTHEGAME_PLAYER_HPP
  3. #define PLAYER_MAX_LEVEL 1000
  4. #define PLAYER_MAX_EXPERIENCE 9999999
  5. #include "src/class/character.hpp"
  6. class Player : public Character
  7. {
  8. protected:
  9. int experience;
  10. int level;
  11. public:
  12. Player(std::string playerName);
  13. Player(std::string playerName, int playerMaxHP, int playerAtt, int playerDef, int playerLevel, int playerExp);
  14. int getLevel();
  15. int getExp();
  16. int expToLevelUp();
  17. int takeExperience(int drop);
  18. bool checkLevelup();
  19. void levelUp();
  20. };
  21. #endif