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.
 
 

28 lines
573 B

#ifndef HACKTHEGAME_PLAYER_HPP
#define HACKTHEGAME_PLAYER_HPP
#define PLAYER_MAX_LEVEL 1000
#define PLAYER_MAX_EXPERIENCE 9999999
#include "src/class/character.hpp"
class Player : public Character
{
protected:
int experience;
int level;
public:
Player(std::string playerName);
Player(std::string playerName, int playerMaxHP, int playerAtt, int playerDef, int playerLevel, int playerExp);
int getLevel();
int getExp();
int expToLevelUp();
int takeExperience(int drop);
bool checkLevelup();
bool levelUp(int stat);
};
#endif