Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Entity
- {
- size_t x_;
- size_t y_;
- public:
- Entity(size_t x,size_t y):x_(x),y_(y)
- {}
- bool isDangerous() const
- {
- return false;
- }
- };
- class hunter:public Entity
- {
- public:
- hunter(size_t x, size_t y):Entity(x,y)
- {}
- bool isDangerous() const
- {
- return true;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement