From 5e4244e12538eac61463715aa1c8c1f438347cd7 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Thu, 24 Sep 2020 16:15:48 -0400 Subject: [PATCH] added die interface --- .../main/java/com/wyattjmiller/dicerollerapp/Die.kt | 9 +-------- .../java/com/wyattjmiller/dicerollerapp/DieEnum.kt | 10 ++++++++++ 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 app/src/main/java/com/wyattjmiller/dicerollerapp/DieEnum.kt diff --git a/app/src/main/java/com/wyattjmiller/dicerollerapp/Die.kt b/app/src/main/java/com/wyattjmiller/dicerollerapp/Die.kt index a1ae63b..c42e2de 100644 --- a/app/src/main/java/com/wyattjmiller/dicerollerapp/Die.kt +++ b/app/src/main/java/com/wyattjmiller/dicerollerapp/Die.kt @@ -1,10 +1,3 @@ package com.wyattjmiller.dicerollerapp -enum class Die { - One, - Two, - Three, - Four, - Five, - Six -} \ No newline at end of file +interface Die \ No newline at end of file diff --git a/app/src/main/java/com/wyattjmiller/dicerollerapp/DieEnum.kt b/app/src/main/java/com/wyattjmiller/dicerollerapp/DieEnum.kt new file mode 100644 index 0000000..b9fdac0 --- /dev/null +++ b/app/src/main/java/com/wyattjmiller/dicerollerapp/DieEnum.kt @@ -0,0 +1,10 @@ +package com.wyattjmiller.dicerollerapp + +enum class SixDie : Die { + One, + Two, + Three, + Four, + Five, + Six +} \ No newline at end of file