Advertisement
Zexanima

player.h

Sep 29th, 2011
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.99 KB | None | 0 0
  1. #ifndef PLAYER_H
  2. #define PLAYER_H
  3.  
  4.  
  5. class Player
  6. {
  7.     private:
  8.         // Data Members (Player Stats)
  9.         int Strg;
  10.         int Def;
  11.         int Agil;
  12.         int Health;
  13.         int Exp;
  14.         int Gold;
  15.         int Lvl;
  16.  
  17.     public:
  18.  
  19.         //Constructors
  20.         Player();
  21.  
  22.         //Operators
  23.  
  24.         //Function members
  25.  
  26.         void set(int s, int d, int a, int h, int e,int g, int l)
  27.         {Strg=s;Def=d;Agil=a;Health=h;Exp=e;Gold=g;Lvl=l;}
  28.         void IncrStat(int s, int d, int a, int h, int e,int g, int l);
  29.         void DecrStat(int s, int d, int a, int h, int e,int g, int l);
  30.         void save();
  31.         void load();
  32.         int get_Strg(){return Strg;}
  33.         int get_Agil(){return Agil;}
  34.         int get_Def() {return Def;}
  35.         int get_Health() {return Health;}
  36.         int get_Exp() {return Exp;}
  37.         int get_Gold() {return Gold;}
  38.         int get_Lvl() {return Lvl;}
  39.         void lose_h(int n);
  40.         void set_h();
  41.  
  42.  
  43. };
  44. #endif
  45.  
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement