From 3dfa71dab18224455cc5563a08d420b6bed955b7 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Fri, 22 Apr 2022 11:53:11 +0200 Subject: [PATCH] Created Interface Participant changed Class Game to save Participant Objects instad of int. --- .../java/ch/zhaw/projekt2/turnierverwaltung/Game.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } }