From 20b57ce31b68f279891434af34bbe8392d4b0f81 Mon Sep 17 00:00:00 2001 From: Alexis DRAI Date: Wed, 21 Sep 2022 13:17:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB?= =?UTF-8?q?=20Put=20Value=20at=20abstract=20level,=20leave=20IDs=20for=20l?= =?UTF-8?q?ater?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Model/AbstractDieFace.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Sources/Model/AbstractDieFace.cs b/Sources/Model/AbstractDieFace.cs index 409c61e..b9baca9 100644 --- a/Sources/Model/AbstractDieFace.cs +++ b/Sources/Model/AbstractDieFace.cs @@ -8,6 +8,14 @@ namespace Model { public abstract class AbstractDieFace { - public string ID { get; set; } + /// + /// every die face has a value, and they can all be represented by an int, + /// even if they're not litterally a decimal number + ///
+ /// USE GetPracticalValue for a Value specific to face type + ///
+ protected abstract int Value { get; } + + public abstract object GetPracticalValue(); } }