SHARE
TWEET

Untitled

a guest Aug 15th, 2012 9 Never
  1. #ifndef HERO_H
  2. #define HERO_H
  3.  
  4.  
  5. class person: public gameboard
  6. {
  7.     private:
  8.         int hp, attackPwr, xCo, yCo;
  9.     public:
  10.         person() : hp(100), attackPwr(0), xCo(5), yCo(5) {}
  11.         person(int hp, int pwr, int x, int y) : hp(hp), attackPwr(pwr), xCo(x), yCo(y) {}
  12.         void move();
  13.         void currentCords();
  14. };
  15.  
  16. #endif // HERO_H
RAW Paste Data
Top