Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using std::string;
- class Player{
- public:
- Player();
- Player(string n,int h, int a, int agi);
- int getHp();
- int getAtk();
- int getAgi();
- string getName();
- void setHp(int h);
- void attack(Player &attacked);
- void combat(Player &declarer,Player &enemy);
- bool isAlive();
- private:
- string _name;
- int _hp;
- int _atk;
- int _agi;
- };
Add Comment
Please, Sign In to add comment