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.

35 lines
562 B

  1. #ifndef HACKTHEGAME_CHARACTER_HPP
  2. #define HACKTHEGAME_CHARACTER_HPP
  3. #include <string>
  4. class Character
  5. {
  6. protected:
  7. std::string name;
  8. int maxHP;
  9. int currentHP;
  10. int atk;
  11. int def;
  12. public:
  13. Character(std::string characterName);
  14. Character(std::string characterName, int characterMaxHP, int characterAtk, int characterDef);
  15. bool isDead();
  16. bool isAlive();
  17. std::string getName();
  18. void restoreHP();
  19. int getCurrentHP();
  20. int getMaxHP();
  21. int getDef();
  22. int getAtk();
  23. int defend(int dmg);
  24. };
  25. #endif