summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/IRoundState.java
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-06-07 16:59:06 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-06-07 16:59:06 +0200
commit244abb7e7320355d0c4aad4a7ba267f11d358563 (patch)
treedd612c5022132d77a9b4f7f1c85f95ce83e2789a /src/jrummikub/model/IRoundState.java
parentaf3661fea084df6e089c2597dc4b311c77f39e4f (diff)
downloadJRummikub-244abb7e7320355d0c4aad4a7ba267f11d358563.tar
JRummikub-244abb7e7320355d0c4aad4a7ba267f11d358563.zip
Make model fully serializable
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@381 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/model/IRoundState.java')
-rw-r--r--src/jrummikub/model/IRoundState.java26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/jrummikub/model/IRoundState.java b/src/jrummikub/model/IRoundState.java
index 1f6da15..d394694 100644
--- a/src/jrummikub/model/IRoundState.java
+++ b/src/jrummikub/model/IRoundState.java
@@ -1,9 +1,11 @@
package jrummikub.model;
+import java.io.Serializable;
+
/**
* Interface for {@link RoundState} model
*/
-public interface IRoundState {
+public interface IRoundState extends Serializable {
/**
* Get the current {@link GameSettings}
@@ -23,7 +25,7 @@ public interface IRoundState {
* Sets the current {@link Table}
*
* @param table
- * The new Table
+ * The new Table
*/
public void setTable(ITable table);
@@ -55,7 +57,7 @@ public interface IRoundState {
* Returns the player that would be the active player after i turns
*
* @param i
- * number of turns
+ * number of turns
* @return player active after i turns
*/
public IPlayer getNthNextPlayer(int i);
@@ -64,25 +66,25 @@ public interface IRoundState {
* Returns the nth player
*
* @param i
- * player number
+ * player number
* @return nth player
*/
public IPlayer getNthPlayer(int i);
/**
- * Sets the player that will make the last turn before the round ends when
- * the heap is empty
+ * Sets the player that will make the last turn before the round ends when the
+ * heap is empty
*
* @return the last player
*/
public abstract IPlayer getLastPlayer();
/**
- * Gets the player that will make the last turn before the round ends when
- * the heap is empty
+ * Gets the player that will make the last turn before the round ends when the
+ * heap is empty
*
* @param lastPlayer
- * the last player
+ * the last player
*/
public abstract void setLastPlayer(IPlayer lastPlayer);
@@ -90,13 +92,13 @@ public interface IRoundState {
* Makes the player with number i the active player
*
* @param i
- * number of the player to make active
+ * number of the player to make active
*/
public void setActivePlayerNumber(int i);
/**
- * Gets the number of the current turn. Numbers smaller than one indicate
- * hand inspection turns
+ * Gets the number of the current turn. Numbers smaller than one indicate hand
+ * inspection turns
*
* @return current turn number
*/