-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.java
52 lines (49 loc) · 806 Bytes
/
Player.java
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
public class Player {
private char name;
private int points;
private int set;
private int game;
public Player(char name,int points,int set,int game)
{
this.name=name;
this.points=points;
this.set=set;
this.game=game;
}
public char getName() {
return name;
}
public void setName(char name) {
this.name = name;
}
public int getPoints() {
return points;
}
public void setPoints(int points) {
this.points = points;
}
public int getSet() {
return set;
}
public void setSet(int set) {
this.set = set;
}
public int getGame() {
return game;
}
public void setGame(int game) {
this.game = game;
}
public void incrementPoints()
{
this.points=this.points+1;
}
public void incrementGames()
{
this.game++;
}
public void incrementSets()
{
this.set++;
}
}