SHARE
TWEET

RPG Battle 3 Stath.h

zCool May 13th, 2012 11 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef STATS_H
  2. #define STATS_H
  3.  
  4. class Stats
  5. {
  6. private:
  7.         int health;
  8.         int attack;
  9.         int defense;
  10.         int skill;
  11.        
  12. public:
  13.         Stats() { }
  14.         Stats(int hlth, int attk, int dfns, int skll);
  15.         int getHealth() { return health; }
  16.         int getAttack() { return attack; }
  17.         int getDefense() { return defense; }
  18.         int getSkill() { return skill; }
  19.         void setHealth(int hp) { health = hp; }
  20.         void setAttack(int atk) { attack = atk; }
  21.         void setDefense(int def) { defense = def; }
  22.         void setSkill(int skil) { skill = skil; }
  23. };
  24.  
  25. #endif
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top