Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <string>
- using namespace std;
- class Player
- {
- public:
- Player(string playerName);
- void checkIfLeveledUp();
- //Setters
- void setHealthPoints(int newHP){ _hp = newHP; }
- void addExperiencePoint(int valueToAdd) { _exp += valueToAdd; }
- //Getters
- int getExperiencePoints(){ return _exp; }
- int getHealthPoint(){ return _hp; }
- private:
- string _name;
- int _exp;
- int _lvl;
- int _dmg;
- int _hp;
- };
Advertisement
Add Comment
Please, Sign In to add comment