Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PLAYER_H
- #define PLAYER_H
- class Player
- {
- private:
- // Data Members (Player Stats)
- int Strg;
- int Def;
- int Agil;
- int Health;
- int Exp;
- int Gold;
- int Lvl;
- public:
- //Constructors
- Player();
- //Operators
- //Function members
- void set(int s, int d, int a, int h, int e,int g, int l)
- {Strg=s;Def=d;Agil=a;Health=h;Exp=e;Gold=g;Lvl=l;}
- void IncrStat(int s, int d, int a, int h, int e,int g, int l);
- void DecrStat(int s, int d, int a, int h, int e,int g, int l);
- void save();
- void load();
- int get_Strg(){return Strg;}
- int get_Agil(){return Agil;}
- int get_Def() {return Def;}
- int get_Health() {return Health;}
- int get_Exp() {return Exp;}
- int get_Gold() {return Gold;}
- int get_Lvl() {return Lvl;}
- void lose_h(int n);
- void set_h();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement