Zexanima

imp.h

Sep 29th, 2011
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.98 KB | None | 0 0
  1. #ifndef IMP_H
  2. #define IMP_H
  3.  
  4.  
  5. class Imp
  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.     public:
  17.         //Contructors
  18.         Imp();
  19.  
  20.         //Operators
  21.  
  22.         //Function members
  23.  
  24.         void set(int s, int d, int a, int h, int e,int g, int l)
  25.         {Strg=s;Def=d;Agil=a;Health=h;Exp=e;Gold=g;Lvl=l;}
  26.         void IncrStat(int s, int d, int a, int h, int e,int g, int l);
  27.         void DecrStat(int s, int d, int a, int h, int e,int g, int l);
  28.         void save();
  29.         void load();
  30.         int get_Strg(){return Strg;}
  31.         int get_Agil(){return Agil;}
  32.         int get_Def() {return Def;}
  33.         int get_Health() {return Health;}
  34.         int get_Exp() {return Exp;}
  35.         int get_Gold() {return Gold;}
  36.         int get_Lvl() {return Lvl;}
  37.         void set_level(int n);
  38.         void lose_h(int n);
  39. };
  40.  
  41. #endif // IMP_H
  42.  
  43.  
Advertisement
Add Comment
Please, Sign In to add comment