Inheritance diagram for Player:Public Member Functions | |
| Player (const std::string &name, int health, int damage) | |
| virtual std::string | WhoAmI () const =0 |
| virtual void | Attack (Player &other) const |
| virtual void | Attack2 (Player &other) const =0 |
| void | TakeDamage (int damage) |
| const std::string & | getName () const |
| int | getHealth () const |
| int | getDamage () const |
| bool | isAlive () const |
Private Attributes | |
| std::string | name_ |
| int | health_ |
| int | damage_ |