-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathServerinfo.java
47 lines (35 loc) · 894 Bytes
/
Serverinfo.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
public class Serverinfo {
private String nombre;
private String shortName;
private int numPlayers;
private int maxPlayers;
public Serverinfo() {
}
public void setMaxPlayers(int maxPlayers) {
this.maxPlayers = maxPlayers;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public void setNumPlayers(int numPlayers) {
this.numPlayers = numPlayers;
}
public void setShortName(String shortName) {
this.shortName = shortName;
}
public int getMaxPlayers() {
return maxPlayers;
}
public String getNombre() {
return nombre;
}
public int getNumPlayers() {
return numPlayers;
}
public String getShortName() {
return shortName;
}
public String getFullName() {
return this.getNombre() + this.getShortName();
}
}