Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 15th, 2012  |  syntax: C++  |  size: 0.36 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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