diff options
Diffstat (limited to 'src/jrummikub/model/IRoundState.java')
-rw-r--r-- | src/jrummikub/model/IRoundState.java | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/jrummikub/model/IRoundState.java b/src/jrummikub/model/IRoundState.java index af7a478..dea225b 100644 --- a/src/jrummikub/model/IRoundState.java +++ b/src/jrummikub/model/IRoundState.java @@ -23,7 +23,7 @@ public interface IRoundState { * Sets the current {@link Table} * * @param table - * The new Table + * The new Table */ public void setTable(ITable table); @@ -55,9 +55,26 @@ 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); + /** + * Sets the player that will make the last turn before the round ends when + * the heap is empty + * + * @param lastPlayer + * 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 + * + * @return lastPlayer the last player + */ + public abstract void setLastPlayer(IPlayer lastPlayer); + }
\ No newline at end of file |