Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef HERO_H
- #define HERO_H
- class person: public gameboard
- {
- private:
- int hp, attackPwr, xCo, yCo;
- public:
- person() : hp(100), attackPwr(0), xCo(5), yCo(5) {}
- person(int hp, int pwr, int x, int y) : hp(hp), attackPwr(pwr), xCo(x), yCo(y) {}
- void move();
- void currentCords();
- };
- #endif // HERO_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement