From 670fcf2613f6db2a4bfdaa91ac9d90001a90359e Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Tue, 10 May 2011 16:59:40 +0200 Subject: docs fertig und vorher repariert git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@232 72836036-5685-4462-b002-a69064685172 --- doc/jrummikub/model/GameState.html | 422 +++++++++++++++++++++++++++++++++++++ 1 file changed, 422 insertions(+) create mode 100644 doc/jrummikub/model/GameState.html (limited to 'doc/jrummikub/model/GameState.html') diff --git a/doc/jrummikub/model/GameState.html b/doc/jrummikub/model/GameState.html new file mode 100644 index 0000000..efc47e6 --- /dev/null +++ b/doc/jrummikub/model/GameState.html @@ -0,0 +1,422 @@ + + + + + + +GameState + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.model +
+Class GameState

+
+java.lang.Object
+  extended by jrummikub.model.GameState
+
+
+
All Implemented Interfaces:
IGameState
+
+
+
+
public class GameState
extends java.lang.Object
implements IGameState
+ + +

+Class managing the overall and momentary GameState +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
GameState() + +
+          Create a new GameState with an empty table and (currently) 4 new players.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ IPlayergetActivePlayer() + +
+          Returns the currently active player
+ StoneHeapgetGameHeap() + +
+          Returns the heap of stones to draw from
+ IPlayergetNthNextPlayer(int i) + +
+          Returns the player that would be the active player after i turns
+ intgetPlayerCount() + +
+          Returns the number of players
+ ITablegetTable() + +
+          Get the current Table
+ voidnextPlayer() + +
+          Changes the activePlayer to the next Player in the list
+ voidsetTable(ITable table) + +
+          Sets the current Table
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GameState

+
+public GameState()
+
+
Create a new GameState with an empty table and (currently) 4 new players. +

+

+ + + + + + + + +
+Method Detail
+ +

+getTable

+
+public ITable getTable()
+
+
Description copied from interface: IGameState
+
Get the current Table +

+

+
Specified by:
getTable in interface IGameState
+
+
+ +
Returns:
The current Table
+
+
+
+ +

+setTable

+
+public void setTable(ITable table)
+
+
Description copied from interface: IGameState
+
Sets the current Table +

+

+
Specified by:
setTable in interface IGameState
+
+
+
Parameters:
table - The new Table
+
+
+
+ +

+getPlayerCount

+
+public int getPlayerCount()
+
+
Description copied from interface: IGameState
+
Returns the number of players +

+

+
Specified by:
getPlayerCount in interface IGameState
+
+
+ +
Returns:
number of players
+
+
+
+ +

+nextPlayer

+
+public void nextPlayer()
+
+
Description copied from interface: IGameState
+
Changes the activePlayer to the next Player in the list +

+

+
Specified by:
nextPlayer in interface IGameState
+
+
+
+
+
+
+ +

+getNthNextPlayer

+
+public IPlayer getNthNextPlayer(int i)
+
+
Description copied from interface: IGameState
+
Returns the player that would be the active player after i turns +

+

+
Specified by:
getNthNextPlayer in interface IGameState
+
+
+
Parameters:
i - number of turns +
Returns:
player active after i turns
+
+
+
+ +

+getActivePlayer

+
+public IPlayer getActivePlayer()
+
+
Description copied from interface: IGameState
+
Returns the currently active player +

+

+
Specified by:
getActivePlayer in interface IGameState
+
+
+ +
Returns:
currently active player
+
+
+
+ +

+getGameHeap

+
+public StoneHeap getGameHeap()
+
+
Description copied from interface: IGameState
+
Returns the heap of stones to draw from +

+

+
Specified by:
getGameHeap in interface IGameState
+
+
+ +
Returns:
heap of stones
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3