summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control/turn/AbstractTurnControl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/control/turn/AbstractTurnControl.java')
-rw-r--r--src/jrummikub/control/turn/AbstractTurnControl.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/jrummikub/control/turn/AbstractTurnControl.java b/src/jrummikub/control/turn/AbstractTurnControl.java
new file mode 100644
index 0000000..9e3b069
--- /dev/null
+++ b/src/jrummikub/control/turn/AbstractTurnControl.java
@@ -0,0 +1,27 @@
+package jrummikub.control.turn;
+
+import jrummikub.util.Event;
+import jrummikub.util.IEvent;
+
+/**
+ * Abstract base class for TurnControls
+ */
+public abstract class AbstractTurnControl implements ITurnControl {
+
+ protected Event endOfTurnEvent = new Event();
+ protected Event redealEvent = new Event();
+
+ @Override
+ public abstract void startTurn();
+
+ @Override
+ public IEvent getEndOfTurnEvent() {
+ return endOfTurnEvent;
+ }
+
+ @Override
+ public Event getRedealEvent() {
+ return redealEvent;
+ }
+
+} \ No newline at end of file