#pragma once #include "DestroyableGroundObject.h" #include class House: public DestroyableGroundObject { public: House() {} House(const House &h) { x = h.x; y = h.y; width = h.width; } bool isInside(double x1, double x2) const override; inline uint16_t GetScore() const override { return score; } void Draw() const override; House* clone() const { return new House(*this); } private: const uint16_t score = 40; };