// // Created by Benjamin on 1/25/2022. // #ifndef SFML_TEMPLATE_BUTTON_H #define SFML_TEMPLATE_BUTTON_H #include #include "Sprite.h" class Button : public Sprite { public: explicit Button(const sf::Texture &, const std::function &); Button(const sf::Texture &, float, float, float, int, const std::function &); void click() override; void hover() override; void unHover() override; protected: std::function command; }; #endif //SFML_TEMPLATE_BUTTON_H