From 36cca6103cb53a62bc7866fd33045dad23fe0381 Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Thu, 25 Jan 2024 12:45:13 +0100 Subject: [PATCH] Add GameModel and lastPlayedCard --- src/main/java/de/hsfulda/onses/models/Game.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/java/de/hsfulda/onses/models/Game.java diff --git a/src/main/java/de/hsfulda/onses/models/Game.java b/src/main/java/de/hsfulda/onses/models/Game.java new file mode 100644 index 0000000..3ac05ca --- /dev/null +++ b/src/main/java/de/hsfulda/onses/models/Game.java @@ -0,0 +1,15 @@ +package de.hsfulda.onses.models; + +public class Game { + + private Card lastPlayedCard = null; + + public Card getLastPlayedCard() { + return lastPlayedCard; + } + + public Game setLastPlayedCard(Card lastPlayedCard) { + this.lastPlayedCard = lastPlayedCard; + return this; + } +}