diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Game.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Game.java index e04b84d..bab3390 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Game.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Game.java @@ -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; } }