summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jrummikub/model/IGameState.java18
-rw-r--r--src/jrummikub/model/IPlayer.java11
2 files changed, 29 insertions, 0 deletions
diff --git a/src/jrummikub/model/IGameState.java b/src/jrummikub/model/IGameState.java
new file mode 100644
index 0000000..56ab917
--- /dev/null
+++ b/src/jrummikub/model/IGameState.java
@@ -0,0 +1,18 @@
+package jrummikub.model;
+
+public interface IGameState {
+
+ public ITable getTable();
+
+ public int getPlayerCount();
+
+ public IPlayer getPlayer(int i);
+
+ /** Changes the activePlayer to the next {@link Player} in the list */
+ public void nextPlayer();
+
+ public IPlayer getActivePlayer();
+
+ public StoneHeap getGameHeap();
+
+} \ No newline at end of file
diff --git a/src/jrummikub/model/IPlayer.java b/src/jrummikub/model/IPlayer.java
new file mode 100644
index 0000000..1ed0554
--- /dev/null
+++ b/src/jrummikub/model/IPlayer.java
@@ -0,0 +1,11 @@
+package jrummikub.model;
+
+import java.awt.Color;
+
+public interface IPlayer {
+
+ public IHand getHand();
+
+ public Color getColor();
+
+} \ No newline at end of file