forked from moevm/gui-1h2017-14
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.cpp
77 lines (62 loc) · 1.02 KB
/
player.cpp
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
#include "player.h"
Player::Player()
{
name = "Player";
musicScore = 0;
filmScore = 0;
type = "User";
sumScore = musicScore + filmScore;
}
Player::Player(QString n, int ms, int fs, QString t)
{
name = n;
musicScore = ms;
filmScore = fs;
type = t;
sumScore = musicScore + filmScore;
}
Player::~Player()
{
}
QString Player::getName() const
{
return name;
}
void Player::setName(const QString &value)
{
name = value;
}
QString Player::getType() const
{
return type;
}
void Player::setType(const QString &value)
{
type = value;
}
int Player::getMusicScore() const
{
return musicScore;
}
void Player::setMusicScore(int value)
{
musicScore = value;
sumScore = filmScore + musicScore;
}
int Player::getFilmScore() const
{
return filmScore;
}
void Player::setFilmScore(int value)
{
filmScore = value;
sumScore = filmScore + musicScore;
}
int Player::getSumScore() const
{
return sumScore;
}
void Player::setSumScore(int value)
{
sumScore = value;
}