-
Notifications
You must be signed in to change notification settings - Fork 0
/
Menu.h
96 lines (64 loc) · 1.81 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#ifndef MENU_H_INCLUDED
#define MENU_H_INCLUDED
#include <iostream>
#include <thread>
#include <conio.h>
#include "Audio.h"
using namespace std;
const int TECLA_ENTER = 13;
const int COLOR_VERDE = 10;
const int COLOR_AMARILLO = 14;
const int MAX_DIFICULTADES = 3;
const int RETARDO = 6000;
/*
* Pre: ---
* Post: Muestra por pantalla el mensaje "Pulse la tecla intro" hasta
* que se detecta la tecla
*/
void mostrarTitulo(string deseo);
/*
* Pre: ---
* Post: Ha devuelto el tipo de dificultad del modo de juego
*/
string mostrarDificultad(int& dificultad);
/*
* Pre: ---
* Post: Ha mostrado por pantalla un rotulo cuyo contenido es "FINAL"
*/
void presentarFinal();
/*
* Pre: ---
* Post: Ha mostrado por pantalla el menu inicial del
* juego
*/
void presentarMenu();
/*
* Pre: ---
* Post: Ha dibujado por pantalla una cuadricula pequenya
*/
void dibujoCuadricula();
/*
* Pre: ---
* Post: Ha mostrado por pantalla un menu con las posibles
* opciones de configuracion al usuario
*/
void menuOpciones(int& dificultad, int& pista, char nombre[]);
/*
* Pre: ---
* Post: Ha mostrado por pantalla un panel con la informacion de la partida actual del usuario.
* En el lateral izquierdo se ha informado de la dificultad actual del modo de juego, en el centro
* se encuentra el nombre del jugador actual, y en la derecha figura el total de ountos que lleva actualmente
*/
void panelPuntuacion(string dificultad, string nombre, int puntos, bool& actualizar);
/*
* Pre: ---
* Post: Ha mostrado por terminal los caracteres que componen la cadena
* <<mensaje>> con un intervalo de separacion de 100 milisegundos
*/
void mostrarMensaje(const string mensaje);
/*
* Pre: ---
* Post: Muestra por pantalla los creditos del juego
*/
void creditos();
#endif // MENU_H_INCLUDED