Javadoc
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@609 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
3193477354
commit
51b7fbe822
156 changed files with 22852 additions and 2001 deletions
|
@ -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">
|
||||
PREV CLASS
|
||||
<A HREF="../../jrummikub/model/GameSettings.html" title="class in jrummikub.model"><B>PREV CLASS</B></A>
|
||||
<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>
|
||||
|
@ -76,9 +76,9 @@ function windowTitle()
|
|||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||||
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||||
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||||
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||||
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 int</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#firstRoundFirstPlayer">firstRoundFirstPlayer</A></B></CODE>
|
||||
|
||||
<BR>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE>private <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>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE>private java.util.ArrayList<<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#scores">scores</A></B></CODE>
|
||||
|
||||
<BR>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE>private static long</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#serialVersionUID">serialVersionUID</A></B></CODE>
|
||||
|
||||
<BR>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<!-- ======== 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>
|
||||
Create a new GameState with an empty table and (currently) 4 new players.</TD>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
|
@ -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> <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> <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>
|
||||
Returns the currently active player</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> <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>
|
||||
|
||||
<BR>
|
||||
Returns the heap of stones to draw from</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> <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 i)</CODE>
|
||||
|
||||
<BR>
|
||||
Returns the player that would be the active player after i turns</TD>
|
||||
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> int</CODE></FONT></TD>
|
||||
<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#getPlayerCount()">getPlayerCount</A></B>()</CODE>
|
||||
<TD><CODE><B><A HREF="../../jrummikub/model/GameState.html#getFirstRoundFirstPlayer()">getFirstRoundFirstPlayer</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
Returns the number of players</TD>
|
||||
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> <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> <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>
|
||||
Get the current <A HREF="../../jrummikub/model/Table.html" title="class in jrummikub.model"><CODE>Table</CODE></A></TD>
|
||||
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> java.util.List<<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#getScores()">getScores</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
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>private 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[] points,
|
||||
int[] wins)</CODE>
|
||||
|
||||
<BR>
|
||||
Returns whether players have won</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> 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 firstRoundFirstPlayer)</CODE>
|
||||
|
||||
<BR>
|
||||
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>
|
||||
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> 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> 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> lastPlayerRedealed)</CODE>
|
||||
|
||||
<BR>
|
||||
Sets the current <A HREF="../../jrummikub/model/Table.html" title="class in jrummikub.model"><CODE>Table</CODE></A></TD>
|
||||
Sets the player that has redealed last</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
||||
|
@ -205,6 +249,55 @@ Class managing the overall and momentary GameState
|
|||
|
||||
<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<<A HREF="../../jrummikub/model/Score.html" title="class in jrummikub.model">Score</A>> <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> table)</PRE>
|
||||
public void <B>setFirstRoundFirstPlayer</B>(int 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> 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 i)</PRE>
|
||||
public java.util.List<<A HREF="../../jrummikub/model/Score.html" title="class in jrummikub.model">Score</A>> <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[] points,
|
||||
int[] 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">
|
||||
PREV CLASS
|
||||
<A HREF="../../jrummikub/model/GameSettings.html" title="class in jrummikub.model"><B>PREV CLASS</B></A>
|
||||
<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>
|
||||
|
@ -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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||||
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||||
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||||
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||||
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<A NAME="skip-navbar_bottom"></A>
|
||||
|
|
Reference in a new issue