removed Indexes from Game.java
This commit is contained in:
parent
1b9e9c27a9
commit
9a3a9f3b53
|
@ -12,8 +12,6 @@ public class Game implements Serializable {
|
||||||
public Game(Participant participant1, Participant participant2, int index1, int index2) {
|
public Game(Participant participant1, Participant participant2, int index1, int index2) {
|
||||||
this.participant1 = participant1;
|
this.participant1 = participant1;
|
||||||
this.participant2 = participant2;
|
this.participant2 = participant2;
|
||||||
this.index1 = index1;
|
|
||||||
this.index2 = index2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Place getLocation() {
|
public Place getLocation() {
|
||||||
|
@ -60,14 +58,6 @@ public class Game implements Serializable {
|
||||||
return place;
|
return place;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getIndex1() {
|
|
||||||
return index1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getIndex2() {
|
|
||||||
return index2;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Participant getWinner(){
|
public Participant getWinner(){
|
||||||
if(points1 > points2){
|
if(points1 > points2){
|
||||||
return participant1;
|
return participant1;
|
||||||
|
|
Loading…
Reference in New Issue