|
|
| CostButton (int x, int y, tinyxml2::XMLElement *xmlDefinition, std::shared_ptr< const int > resource) |
| |
|
void | update (sf::Vector2i const &mousePos) override |
| |
|
| Button (int x, int y, const tinyxml2::XMLElement *xmlButtonDefinition) |
| |
|
bool | checkClick () const |
| |
|
void | enable () |
| |
|
void | disable () |
| |
|
bool | containsMouse () const |
| |
|
std::string const & | getName () const |
| |
|
void | setPosition (sf::Vector2f const &position) |
| |
|
sf::Vector2f const & | getPosition () const |
| |
|
sf::Vector2f const & | getSize () const |
| |
|
sf::Vector2f const & | getScale () const |
| |
|
|
void | draw (sf::RenderTarget &target, sf::RenderStates states) const override |
| |
|
|
const int | mCost |
| |
|
sf::Text | mCostText |
| |
|
std::shared_ptr< const int > | mResource |
| |
|
| enum | State { NORMAL,
HOVER,
DISABLED
} |
| |
|
void | draw (sf::RenderTarget &target, sf::RenderStates states) const override |
| |
|
void | setState (State newState) |
| |
|
enum gui::Button::State | mState |
| |
The documentation for this class was generated from the following file: