SHARE
TWEET

Stats.h

zCool May 17th, 2012 20 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 m_health;
  8.         int m_attack;
  9.         int m_defense;
  10.         int m_skill;
  11. public:
  12.         Stats(int health, int attack, int defense, int skill);
  13.         void setDefaultDefense(int defaultDEF) { m_defense = defaultDEF; }
  14.         void setDefaultAttack(int defaultATK) { m_attack = defaultATK; }
  15.         void incrementDefense(int defenseIncrement);
  16.         void incrementAttack(int attackIncrement);
  17.         void incrementHealth(int healthIncrement);
  18.         void printStats();
  19.         int getAttack() { return m_attack; }
  20.         int getHealth() { return m_health; }
  21.         int getDefense() { return m_defense; }
  22.         int getSkill() { return m_skill; }
  23.         void setHealth(int health) { m_health = health; }
  24.  
  25. };
  26.  
  27. #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