#include "classicselection.h" #include "classicsprite.h" ClassicSelection::ClassicSelection(ClassicSelection::Init&& init) : _fill_color(init.color), _shape(init.shape) { _shape->setColor(init.color); } void ClassicSelection::reset() { _shape->setPosition(kku::Point{0, 0}); _shape->setColor(kku::Color{51, 153, 255, 120}); } void ClassicSelection::display() const { _shape->display(); } void ClassicSelection::adjustTo(const std::shared_ptr& sprite) { _shape->setRect(sprite->getRectangle()->getRect()); }