Created Interface Participant

changed Class Game to save Participant Objects instad of int.
This commit is contained in:
schrom01 2022-04-22 11:53:11 +02:00
parent a399f9321b
commit 3dfa71dab1
1 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
package ch.zhaw.projekt2.turnierverwaltung;
public class Game {
private int participant1, Participant2;
private Participant participant1, Participant2;
private int points1, points2;
private Location location;
@ -29,19 +29,19 @@ public class Game {
this.points2 = points2;
}
public int getParticipant1() {
public Participant getParticipant1() {
return participant1;
}
public void setParticipant1(int participant1) {
public void setParticipant1(Participant participant1) {
this.participant1 = participant1;
}
public int getParticipant2() {
public Participant getParticipant2() {
return Participant2;
}
public void setParticipant2(int participant2) {
public void setParticipant2(Participant participant2) {
Participant2 = participant2;
}
}