From 6e34270d95e85839ca0d02360430ba2f4fb11db1 Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Wed, 7 Feb 2024 11:29:49 +0100 Subject: [PATCH] add boolean facedown in Card --- src/main/java/de/hsfulda/onses/models/Card.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/de/hsfulda/onses/models/Card.java b/src/main/java/de/hsfulda/onses/models/Card.java index 91cab36..b9fc740 100644 --- a/src/main/java/de/hsfulda/onses/models/Card.java +++ b/src/main/java/de/hsfulda/onses/models/Card.java @@ -11,6 +11,7 @@ public class Card { private Color color; private Value value; + private boolean facedown; public enum Color { RED, BLUE, GREEN, YELLOW, BLACK; @@ -41,6 +42,15 @@ public class Card { return this.value; } + public boolean isFacedown() { + return facedown; + } + + public Card setFacedown(boolean facedown) { + this.facedown = facedown; + return this; + } + public PropertyChangeSupport listeners() { if(this.listeners == null) { this.listeners = new PropertyChangeSupport(this);