#ifndef GUI #define GUI #include "Base.h" #include #include class Button { public: Button(sf::Image* normal, sf::Image* clicked, std::string text, Position2D location); void checkClick(Position2D); void setState(bool state); void setText(std::string); bool getVar(); sf::Sprite* getSprite(); sf::String* getText(); private: sf::Sprite normal; sf::Sprite clicked; sf::Sprite* currentSpr; sf::String String; bool current; }; #endif