Advertisement
Guest User

Untitled

a guest
Aug 15th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement