Argentum Online - Cliente
cast_button.h
1 #ifndef __CAST_BUTTON_H
2 #define __CAST_BUTTON_H
3 
4 #include "../../engine/UI/button.h"
5 
10 class CastButton : public Button {
11  private:
12  bool& attempting_cast;
13 
14  public:
21  CastButton(SDL_Rect button_area, SDL_Rect viewport, SDL_Renderer* renderer,
22  bool& attemtping_cast);
23 
24  void on_click() override;
25 };
26 
27 #endif
Button
Boton abstracto. Todos los botones heredan de esta clase.
Definition: button.h:10
CastButton
Boton de "Lanzar" en el juego.
Definition: cast_button.h:10
CastButton::CastButton
CastButton(SDL_Rect button_area, SDL_Rect viewport, SDL_Renderer *renderer, bool &attemtping_cast)
Crea un objeto Cast Button.
Definition: cast_button.cpp:5
CastButton::on_click
void on_click() override
Accion a ejecutar cuando se clickea el boton izquierdo.
Definition: cast_button.cpp:10