Guest User

Untitled

a guest
Apr 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. class Enemy
  2. {
  3. public:
  4. void attack(Player player);
  5. virtual void die();
  6.  
  7. protected: //Info variables
  8. int attackDamage;
  9. std::string name;
  10. bool alive;
  11. }
  12.  
  13. class ChildEnemy1 : public Enemy
  14. {
  15. name = "Enemy1" //Invalid
  16. };
  17.  
  18. class ChildEnemy2 : public Enemy
  19. {
  20. name = "Enemy2" // Invalid
  21. };
Add Comment
Please, Sign In to add comment