From 9e8f44a81055b15acbdd634bec7bb9a0d731d5c8 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Wed, 4 May 2011 23:33:24 +0200 Subject: Man sollte schon alles comitten... und der Tiger schlummert unter der Haube git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@131 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/model/IGameState.java | 18 ++++++++++++++++++ src/jrummikub/model/IPlayer.java | 11 +++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/jrummikub/model/IGameState.java create mode 100644 src/jrummikub/model/IPlayer.java (limited to 'src') 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 -- cgit v1.2.3