-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuEditar.hpp
More file actions
32 lines (28 loc) · 878 Bytes
/
MenuEditar.hpp
File metadata and controls
32 lines (28 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef MENUEDITAR_HPP
#define MENUEDITAR_HPP
#include "Controlador.hpp"
#include "Menu_Selector.hpp"
#include <SFML/Graphics.hpp>
#include "Modelo.hpp"
class MenuEditar : public Controlador, Menu_Selector
{
protected:
sf::Text normal, seleccionado;
Modelo* modelo;
public:
MenuEditar(Modelo*);
~MenuEditar();
void lanzarInstancia(int) override;
void refrescarPantalla() override;
void tratarEvento(sf::Event & event)override
{
if (event.type == sf::Event::Closed) modelo->cerrarVentana();
Menu_Selector::tratarEvento(event);
if (event.type == sf::Event::KeyPressed)
{
if (event.key.code == sf::Keyboard::Escape) modelo->finishController();
}
}
private:
};
#endif // MENUEDITAR_HPP