-
Notifications
You must be signed in to change notification settings - Fork 1
/
jugador.h
49 lines (46 loc) · 1.26 KB
/
jugador.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
/**
* @file jugador.h
* @brief contiene la declaracion del tipo de datos jugador y sus respectivos getter y setter.
* @author Luis Caviedes
* @author Luis Vasquez
*
* @date 07/07/2013
*/
#ifndef JUGADOR_H
#define JUGADOR_H
#include <QString>
class Jugador
{
public:
/**
* Jugador constructor de la clase.
* @param n variable de tipo QString que representa el nombre del jugador.
* @param p variable de tipo int que representa el puntaje obtenido por el jugador.
* @date 07/07/2013
*/
Jugador(QString n, int p);
/**
* getNombre proporciona el nombre del jugador.
* @return una cadena de caracteres con el nombre del jugador.
*/
QString getNombre();
/**
* getPuntaje proporciona el puntaje obtenido por el jugador.
* @return un tipo int con el puntaje almacenado en el jugador.
*/
int getPuntaje();
/**
* setNombre cambia el nombre de jugador.
* @param n variable tipo QString que representa el nuevo nombre del jugador.
*/
void setNombre(QString n);
/**
* setPuntaje cambia el puntaje de jugador.
* @param n variable tipo int que representa el nuevo puntaje del jugador.
*/
void setPuntaje(int p);
private:
int puntaje;
QString nombre;
};
#endif // JUGADOR_H