summaryrefslogtreecommitdiffstats
path: root/doc/jrummikub/model/GameState.html
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-07-06 16:36:06 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-07-06 16:36:06 +0200
commit51b7fbe822bd9a3804c061f0b844884769d7ddba (patch)
tree152d79321131936d1bc49e959d2a7a2628c592cb /doc/jrummikub/model/GameState.html
parent3193477354fc63477a3f42c94023fa84c129adf1 (diff)
downloadJRummikub-master.tar
JRummikub-master.zip
JavadocHEADmaster
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@609 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'doc/jrummikub/model/GameState.html')
-rw-r--r--doc/jrummikub/model/GameState.html255
1 files changed, 170 insertions, 85 deletions
diff --git a/doc/jrummikub/model/GameState.html b/doc/jrummikub/model/GameState.html
index b99ddf5..4a9e6ae 100644
--- a/doc/jrummikub/model/GameState.html
+++ b/doc/jrummikub/model/GameState.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_22) on Tue May 10 17:04:57 CEST 2011 -->
+<!-- Generated by javadoc (build 1.6.0_22) on Tue Jul 05 21:51:55 CEST 2011 -->
<TITLE>
GameState
</TITLE>
-<META NAME="date" CONTENT="2011-05-10">
+<META NAME="date" CONTENT="2011-07-05">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
@@ -55,7 +55,7 @@ function windowTitle()
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
-&nbsp;PREV CLASS&nbsp;
+&nbsp;<A HREF="../../jrummikub/model/GameSettings.html" title="class in jrummikub.model"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../jrummikub/model/Hand.html" title="class in jrummikub.model"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?jrummikub/model/GameState.html" target="_top"><B>FRAMES</B></A> &nbsp;
@@ -76,9 +76,9 @@ function windowTitle()
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+ SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
-DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
@@ -96,22 +96,65 @@ java.lang.Object
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>jrummikub.model.GameState</B>
</PRE>
<DL>
-<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../jrummikub/model/IGameState.html" title="interface in jrummikub.model">IGameState</A></DD>
+<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
</DL>
<HR>
<DL>
-<DT><PRE>public class <B>GameState</B><DT>extends java.lang.Object<DT>implements <A HREF="../../jrummikub/model/IGameState.html" title="interface in jrummikub.model">IGameState</A></DL>
+<DT><PRE>public class <B>GameState</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL>
</PRE>
<P>
-Class managing the overall and momentary GameState
+Class that stores information for a game of multiple rounds
<P>
<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#jrummikub.model.GameState">Serialized Form</A></DL>
<HR>
<P>
+<!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#firstRoundFirstPlayer">firstRoundFirstPlayer</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;<A HREF="../../jrummikub/model/PlayerSettings.html" title="class in jrummikub.model">PlayerSettings</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#lastPlayerRedealed">lastPlayerRedealed</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.util.ArrayList&lt;<A HREF="../../jrummikub/model/Score.html" title="class in jrummikub.model">Score</A>&gt;</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#scores">scores</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private static&nbsp;long</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#serialVersionUID">serialVersionUID</A></B></CODE>
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
@@ -124,7 +167,7 @@ Class managing the overall and momentary GameState
<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#GameState()">GameState</A></B>()</CODE>
<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new GameState with an empty table and (currently) 4 new players.</TD>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
@@ -138,59 +181,60 @@ Class managing the overall and momentary GameState
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>&nbsp;<A HREF="../../jrummikub/model/IPlayer.html" title="interface in jrummikub.model">IPlayer</A></CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#getActivePlayer()">getActivePlayer</A></B>()</CODE>
+<CODE>&nbsp;<A HREF="../../jrummikub/model/Score.html" title="class in jrummikub.model">Score</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#getAccumulatedScore()">getAccumulatedScore</A></B>()</CODE>
<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the currently active player</TD>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculated the accumulated score over the played rounds</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>&nbsp;<A HREF="../../jrummikub/model/StoneHeap.html" title="class in jrummikub.model">StoneHeap</A></CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#getGameHeap()">getGameHeap</A></B>()</CODE>
+<CODE>&nbsp;int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#getFirstRoundFirstPlayer()">getFirstRoundFirstPlayer</A></B>()</CODE>
<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the heap of stones to draw from</TD>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the number of the first player of the first round</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>&nbsp;<A HREF="../../jrummikub/model/IPlayer.html" title="interface in jrummikub.model">IPlayer</A></CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#getNthNextPlayer(int)">getNthNextPlayer</A></B>(int&nbsp;i)</CODE>
+<CODE>&nbsp;<A HREF="../../jrummikub/model/PlayerSettings.html" title="class in jrummikub.model">PlayerSettings</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#getLastPlayerRedealed()">getLastPlayerRedealed</A></B>()</CODE>
<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the player that would be the active player after i turns</TD>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the player that has redealed last</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>&nbsp;int</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#getPlayerCount()">getPlayerCount</A></B>()</CODE>
+<CODE>&nbsp;java.util.List&lt;<A HREF="../../jrummikub/model/Score.html" title="class in jrummikub.model">Score</A>&gt;</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#getScores()">getScores</A></B>()</CODE>
<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of players</TD>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the list of players' scores in the rounds played before</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>&nbsp;<A HREF="../../jrummikub/model/ITable.html" title="interface in jrummikub.model">ITable</A></CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#getTable()">getTable</A></B>()</CODE>
+<CODE>private &nbsp;java.lang.Boolean[]</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#getWinners(java.lang.Integer[], int[])">getWinners</A></B>(java.lang.Integer[]&nbsp;points,
+ int[]&nbsp;wins)</CODE>
<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current <A HREF="../../jrummikub/model/Table.html" title="class in jrummikub.model"><CODE>Table</CODE></A></TD>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether players have won</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#nextPlayer()">nextPlayer</A></B>()</CODE>
+<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#setFirstRoundFirstPlayer(int)">setFirstRoundFirstPlayer</A></B>(int&nbsp;firstRoundFirstPlayer)</CODE>
<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Changes the activePlayer to the next <A HREF="../../jrummikub/model/Player.html" title="class in jrummikub.model"><CODE>Player</CODE></A> in the list</TD>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the number of the first player of the first round</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#setTable(jrummikub.model.ITable)">setTable</A></B>(<A HREF="../../jrummikub/model/ITable.html" title="interface in jrummikub.model">ITable</A>&nbsp;table)</CODE>
+<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#setLastPlayerRedealed(jrummikub.model.PlayerSettings)">setLastPlayerRedealed</A></B>(<A HREF="../../jrummikub/model/PlayerSettings.html" title="class in jrummikub.model">PlayerSettings</A>&nbsp;lastPlayerRedealed)</CODE>
<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current <A HREF="../../jrummikub/model/Table.html" title="class in jrummikub.model"><CODE>Table</CODE></A></TD>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the player that has redealed last</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
@@ -205,6 +249,55 @@ Class managing the overall and momentary GameState
&nbsp;
<P>
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="serialVersionUID"><!-- --></A><H3>
+serialVersionUID</H3>
+<PRE>
+private static final long <B>serialVersionUID</B></PRE>
+<DL>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#jrummikub.model.GameState.serialVersionUID">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="firstRoundFirstPlayer"><!-- --></A><H3>
+firstRoundFirstPlayer</H3>
+<PRE>
+private int <B>firstRoundFirstPlayer</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="scores"><!-- --></A><H3>
+scores</H3>
+<PRE>
+private java.util.ArrayList&lt;<A HREF="../../jrummikub/model/Score.html" title="class in jrummikub.model">Score</A>&gt; <B>scores</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="lastPlayerRedealed"><!-- --></A><H3>
+lastPlayerRedealed</H3>
+<PRE>
+private <A HREF="../../jrummikub/model/PlayerSettings.html" title="class in jrummikub.model">PlayerSettings</A> <B>lastPlayerRedealed</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
@@ -220,8 +313,6 @@ GameState</H3>
<PRE>
public <B>GameState</B>()</PRE>
<DL>
-<DD>Create a new GameState with an empty table and (currently) 4 new players.
-<P>
</DL>
<!-- ============ METHOD DETAIL ========== -->
@@ -234,126 +325,120 @@ public <B>GameState</B>()</PRE>
</TR>
</TABLE>
-<A NAME="getTable()"><!-- --></A><H3>
-getTable</H3>
+<A NAME="getFirstRoundFirstPlayer()"><!-- --></A><H3>
+getFirstRoundFirstPlayer</H3>
<PRE>
-public <A HREF="../../jrummikub/model/ITable.html" title="interface in jrummikub.model">ITable</A> <B>getTable</B>()</PRE>
+public int <B>getFirstRoundFirstPlayer</B>()</PRE>
<DL>
-<DD><B>Description copied from interface: <CODE><A HREF="../../jrummikub/model/IGameState.html#getTable()">IGameState</A></CODE></B></DD>
-<DD>Get the current <A HREF="../../jrummikub/model/Table.html" title="class in jrummikub.model"><CODE>Table</CODE></A>
+<DD>Gets the number of the first player of the first round
<P>
<DD><DL>
-<DT><B>Specified by:</B><DD><CODE><A HREF="../../jrummikub/model/IGameState.html#getTable()">getTable</A></CODE> in interface <CODE><A HREF="../../jrummikub/model/IGameState.html" title="interface in jrummikub.model">IGameState</A></CODE></DL>
+</DL>
</DD>
<DD><DL>
-<DT><B>Returns:</B><DD>The current Table</DL>
+<DT><B>Returns:</B><DD>the number of the first player of the first round</DL>
</DD>
</DL>
<HR>
-<A NAME="setTable(jrummikub.model.ITable)"><!-- --></A><H3>
-setTable</H3>
+<A NAME="setFirstRoundFirstPlayer(int)"><!-- --></A><H3>
+setFirstRoundFirstPlayer</H3>
<PRE>
-public void <B>setTable</B>(<A HREF="../../jrummikub/model/ITable.html" title="interface in jrummikub.model">ITable</A>&nbsp;table)</PRE>
+public void <B>setFirstRoundFirstPlayer</B>(int&nbsp;firstRoundFirstPlayer)</PRE>
<DL>
-<DD><B>Description copied from interface: <CODE><A HREF="../../jrummikub/model/IGameState.html#setTable(jrummikub.model.ITable)">IGameState</A></CODE></B></DD>
-<DD>Sets the current <A HREF="../../jrummikub/model/Table.html" title="class in jrummikub.model"><CODE>Table</CODE></A>
+<DD>Sets the number of the first player of the first round
<P>
<DD><DL>
-<DT><B>Specified by:</B><DD><CODE><A HREF="../../jrummikub/model/IGameState.html#setTable(jrummikub.model.ITable)">setTable</A></CODE> in interface <CODE><A HREF="../../jrummikub/model/IGameState.html" title="interface in jrummikub.model">IGameState</A></CODE></DL>
+</DL>
</DD>
<DD><DL>
-<DT><B>Parameters:</B><DD><CODE>table</CODE> - The new Table</DL>
+<DT><B>Parameters:</B><DD><CODE>firstRoundFirstPlayer</CODE> - the number of the first player of the first round</DL>
</DD>
</DL>
<HR>
-<A NAME="getPlayerCount()"><!-- --></A><H3>
-getPlayerCount</H3>
+<A NAME="setLastPlayerRedealed(jrummikub.model.PlayerSettings)"><!-- --></A><H3>
+setLastPlayerRedealed</H3>
<PRE>
-public int <B>getPlayerCount</B>()</PRE>
+public void <B>setLastPlayerRedealed</B>(<A HREF="../../jrummikub/model/PlayerSettings.html" title="class in jrummikub.model">PlayerSettings</A>&nbsp;lastPlayerRedealed)</PRE>
<DL>
-<DD><B>Description copied from interface: <CODE><A HREF="../../jrummikub/model/IGameState.html#getPlayerCount()">IGameState</A></CODE></B></DD>
-<DD>Returns the number of players
+<DD>Sets the player that has redealed last
<P>
<DD><DL>
-<DT><B>Specified by:</B><DD><CODE><A HREF="../../jrummikub/model/IGameState.html#getPlayerCount()">getPlayerCount</A></CODE> in interface <CODE><A HREF="../../jrummikub/model/IGameState.html" title="interface in jrummikub.model">IGameState</A></CODE></DL>
+</DL>
</DD>
<DD><DL>
-
-<DT><B>Returns:</B><DD>number of players</DL>
+<DT><B>Parameters:</B><DD><CODE>lastPlayerRedealed</CODE> - the player to set</DL>
</DD>
</DL>
<HR>
-<A NAME="nextPlayer()"><!-- --></A><H3>
-nextPlayer</H3>
+<A NAME="getLastPlayerRedealed()"><!-- --></A><H3>
+getLastPlayerRedealed</H3>
<PRE>
-public void <B>nextPlayer</B>()</PRE>
+public <A HREF="../../jrummikub/model/PlayerSettings.html" title="class in jrummikub.model">PlayerSettings</A> <B>getLastPlayerRedealed</B>()</PRE>
<DL>
-<DD><B>Description copied from interface: <CODE><A HREF="../../jrummikub/model/IGameState.html#nextPlayer()">IGameState</A></CODE></B></DD>
-<DD>Changes the activePlayer to the next <A HREF="../../jrummikub/model/Player.html" title="class in jrummikub.model"><CODE>Player</CODE></A> in the list
+<DD>Returns the player that has redealed last
<P>
<DD><DL>
-<DT><B>Specified by:</B><DD><CODE><A HREF="../../jrummikub/model/IGameState.html#nextPlayer()">nextPlayer</A></CODE> in interface <CODE><A HREF="../../jrummikub/model/IGameState.html" title="interface in jrummikub.model">IGameState</A></CODE></DL>
+</DL>
</DD>
<DD><DL>
-</DL>
+
+<DT><B>Returns:</B><DD>the player</DL>
</DD>
</DL>
<HR>
-<A NAME="getNthNextPlayer(int)"><!-- --></A><H3>
-getNthNextPlayer</H3>
+<A NAME="getScores()"><!-- --></A><H3>
+getScores</H3>
<PRE>
-public <A HREF="../../jrummikub/model/IPlayer.html" title="interface in jrummikub.model">IPlayer</A> <B>getNthNextPlayer</B>(int&nbsp;i)</PRE>
+public java.util.List&lt;<A HREF="../../jrummikub/model/Score.html" title="class in jrummikub.model">Score</A>&gt; <B>getScores</B>()</PRE>
<DL>
-<DD><B>Description copied from interface: <CODE><A HREF="../../jrummikub/model/IGameState.html#getNthNextPlayer(int)">IGameState</A></CODE></B></DD>
-<DD>Returns the player that would be the active player after i turns
+<DD>Returns the list of players' scores in the rounds played before
<P>
<DD><DL>
-<DT><B>Specified by:</B><DD><CODE><A HREF="../../jrummikub/model/IGameState.html#getNthNextPlayer(int)">getNthNextPlayer</A></CODE> in interface <CODE><A HREF="../../jrummikub/model/IGameState.html" title="interface in jrummikub.model">IGameState</A></CODE></DL>
+</DL>
</DD>
<DD><DL>
-<DT><B>Parameters:</B><DD><CODE>i</CODE> - number of turns
-<DT><B>Returns:</B><DD>player active after i turns</DL>
+
+<DT><B>Returns:</B><DD>the list of scores</DL>
</DD>
</DL>
<HR>
-<A NAME="getActivePlayer()"><!-- --></A><H3>
-getActivePlayer</H3>
+<A NAME="getWinners(java.lang.Integer[], int[])"><!-- --></A><H3>
+getWinners</H3>
<PRE>
-public <A HREF="../../jrummikub/model/IPlayer.html" title="interface in jrummikub.model">IPlayer</A> <B>getActivePlayer</B>()</PRE>
+private java.lang.Boolean[] <B>getWinners</B>(java.lang.Integer[]&nbsp;points,
+ int[]&nbsp;wins)</PRE>
<DL>
-<DD><B>Description copied from interface: <CODE><A HREF="../../jrummikub/model/IGameState.html#getActivePlayer()">IGameState</A></CODE></B></DD>
-<DD>Returns the currently active player
+<DD>Returns whether players have won
<P>
<DD><DL>
-<DT><B>Specified by:</B><DD><CODE><A HREF="../../jrummikub/model/IGameState.html#getActivePlayer()">getActivePlayer</A></CODE> in interface <CODE><A HREF="../../jrummikub/model/IGameState.html" title="interface in jrummikub.model">IGameState</A></CODE></DL>
+</DL>
</DD>
<DD><DL>
-
-<DT><B>Returns:</B><DD>currently active player</DL>
+<DT><B>Parameters:</B><DD><CODE>points</CODE> - the player's points<DD><CODE>wins</CODE> - the number of wins per player
+<DT><B>Returns:</B><DD>whether a player has won</DL>
</DD>
</DL>
<HR>
-<A NAME="getGameHeap()"><!-- --></A><H3>
-getGameHeap</H3>
+<A NAME="getAccumulatedScore()"><!-- --></A><H3>
+getAccumulatedScore</H3>
<PRE>
-public <A HREF="../../jrummikub/model/StoneHeap.html" title="class in jrummikub.model">StoneHeap</A> <B>getGameHeap</B>()</PRE>
+public <A HREF="../../jrummikub/model/Score.html" title="class in jrummikub.model">Score</A> <B>getAccumulatedScore</B>()</PRE>
<DL>
-<DD><B>Description copied from interface: <CODE><A HREF="../../jrummikub/model/IGameState.html#getGameHeap()">IGameState</A></CODE></B></DD>
-<DD>Returns the heap of stones to draw from
+<DD>Calculated the accumulated score over the played rounds
<P>
<DD><DL>
-<DT><B>Specified by:</B><DD><CODE><A HREF="../../jrummikub/model/IGameState.html#getGameHeap()">getGameHeap</A></CODE> in interface <CODE><A HREF="../../jrummikub/model/IGameState.html" title="interface in jrummikub.model">IGameState</A></CODE></DL>
+</DL>
</DD>
<DD><DL>
-<DT><B>Returns:</B><DD>heap of stones</DL>
+<DT><B>Returns:</B><DD>the accumulated score</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
@@ -387,7 +472,7 @@ public <A HREF="../../jrummikub/model/StoneHeap.html" title="class in jrummikub.
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
-&nbsp;PREV CLASS&nbsp;
+&nbsp;<A HREF="../../jrummikub/model/GameSettings.html" title="class in jrummikub.model"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../jrummikub/model/Hand.html" title="class in jrummikub.model"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?jrummikub/model/GameState.html" target="_top"><B>FRAMES</B></A> &nbsp;
@@ -408,9 +493,9 @@ public <A HREF="../../jrummikub/model/StoneHeap.html" title="class in jrummikub.
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+ SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
-DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>