/
Menu.h
53 lines (45 loc) · 956 Bytes
/
Menu.h
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Menu.h
* Author: raquel
*
* Created on 26 de marzo de 2018, 21:30
*/
/*** SINGLETON */
#ifndef MENU_H
#define MENU_H
#include "Sprite.h"
#include "Estado.h"
#include "Texture.h"
#include "Music.h"
class Menu : public Estado {
public:
static Menu* Instance();
void handleInput();
void update();
void draw();
void up();
void down();
void resetSelected();
void pausarMusica();
void playMusica();
void stopMusica();
void Thanos();
protected:
Menu();
Menu(const Menu& orig);
virtual ~Menu();
private:
int seleccionado;
m2D::Sprite* sprites;
m2D::Texture texture;
static Menu* pinstance;
m2D::Music music;
m2D::Music button;
m2D::Music intro;
};
#endif /* MENU_H */