Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. class Entity
  2. {
  3. size_t x_;
  4. size_t y_;
  5.  
  6. public:
  7. Entity(size_t x,size_t y):x_(x),y_(y)
  8. {}
  9.  
  10. bool isDangerous() const
  11. {
  12. return false;
  13. }
  14. };
  15.  
  16.  
  17. class hunter:public Entity
  18. {
  19.  
  20.  
  21. public:
  22. hunter(size_t x, size_t y):Entity(x,y)
  23. {}
  24.  
  25. bool isDangerous() const
  26. {
  27. return true;
  28. }
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement