From 2281108c54a4509cab1e92cfe69c71c2276f1cd5 Mon Sep 17 00:00:00 2001 From: fdai7920 Date: Tue, 30 Jan 2024 15:21:27 +0100 Subject: [PATCH] add PlayerService --- .../hsfulda/onses/services/PlayerService.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main/java/de/hsfulda/onses/services/PlayerService.java diff --git a/src/main/java/de/hsfulda/onses/services/PlayerService.java b/src/main/java/de/hsfulda/onses/services/PlayerService.java new file mode 100644 index 0000000..ee4b864 --- /dev/null +++ b/src/main/java/de/hsfulda/onses/services/PlayerService.java @@ -0,0 +1,18 @@ +package de.hsfulda.onses.services; + +import de.hsfulda.onses.models.Player; + +import java.util.ArrayList; + +public class PlayerService { + + private final ArrayList playerList = new ArrayList<>(); + + public ArrayList getPlayerList() { + return playerList; + } + public void addPlayerToList(Player player) { + playerList.add(player); + } + +}