Guest User

Player.h

a guest
Sep 16th, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #pragma once
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. class Player
  7. {
  8. public:
  9.     Player(string playerName);
  10.  
  11.     void checkIfLeveledUp();
  12.  
  13.     //Setters
  14.     void setHealthPoints(int newHP){ _hp = newHP; }
  15.     void addExperiencePoint(int valueToAdd) { _exp += valueToAdd; }
  16.  
  17.     //Getters
  18.     int getExperiencePoints(){ return _exp; }
  19.     int getHealthPoint(){ return _hp; }
  20.  
  21. private:
  22.     string _name;
  23.     int _exp;
  24.     int _lvl;
  25.     int _dmg;
  26.     int _hp;
  27.  
  28. };
Advertisement
Add Comment
Please, Sign In to add comment