From 61fbdc5650b683282986eec6f567d3da3bd37e39 Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Wed, 24 Jan 2024 15:11:21 +0100 Subject: [PATCH] addPlayerDeck --- .../java/de/hsfulda/onses/models/Player.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/main/java/de/hsfulda/onses/models/Player.java diff --git a/src/main/java/de/hsfulda/onses/models/Player.java b/src/main/java/de/hsfulda/onses/models/Player.java new file mode 100644 index 0000000..77eb2b1 --- /dev/null +++ b/src/main/java/de/hsfulda/onses/models/Player.java @@ -0,0 +1,16 @@ +package de.hsfulda.onses.models; + +import java.util.ArrayList; + +public class Player { + + private final ArrayList playerDeck = new ArrayList<>(); + + public ArrayList getPlayerDeck() { + return playerDeck; + } + + public void addCardToPlayerDeck(Card card) { + playerDeck.add(card); + } +}