From 3b49b2053e9f9d26b73db0ffc8380a60706ee095 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Tue, 10 May 2011 03:54:48 +0200 Subject: Added all missing comments git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@213 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/model/MockGameState.java | 9 +++++++++ mock/jrummikub/model/MockHand.java | 10 ++++++---- mock/jrummikub/model/MockPlayer.java | 13 ++++++++++--- mock/jrummikub/model/MockTable.java | 8 +++++++- 4 files changed, 32 insertions(+), 8 deletions(-) (limited to 'mock/jrummikub/model') diff --git a/mock/jrummikub/model/MockGameState.java b/mock/jrummikub/model/MockGameState.java index 377bd1d..53e332e 100644 --- a/mock/jrummikub/model/MockGameState.java +++ b/mock/jrummikub/model/MockGameState.java @@ -4,13 +4,22 @@ import java.awt.Color; import java.util.ArrayList; import java.util.List; +/** + * Mock class for {@link GameState} + */ public class MockGameState implements IGameState { + /** */ public MockTable table; + /** */ public ITable setTable; + /** */ public List players; + /** */ public int activePlayer; + /** */ public StoneHeap gameHeap; + /** */ public MockGameState() { table = new MockTable(); players = new ArrayList(); diff --git a/mock/jrummikub/model/MockHand.java b/mock/jrummikub/model/MockHand.java index f8388d0..dc348c0 100644 --- a/mock/jrummikub/model/MockHand.java +++ b/mock/jrummikub/model/MockHand.java @@ -7,13 +7,15 @@ import java.util.List; import java.util.Set; import jrummikub.util.Pair; - +/** + * Mock class for {@link Hand} + */ public class MockHand implements IHand { - + /** */ public List> stones = new ArrayList>(); - + /** */ public Set pickups = new HashSet(); - + /** */ public Iterable> iterable; @Override diff --git a/mock/jrummikub/model/MockPlayer.java b/mock/jrummikub/model/MockPlayer.java index 2f573ca..a9fbd80 100644 --- a/mock/jrummikub/model/MockPlayer.java +++ b/mock/jrummikub/model/MockPlayer.java @@ -2,14 +2,21 @@ package jrummikub.model; import java.awt.Color; +/** + * Mock class for {@link Player} + */ public class MockPlayer implements IPlayer { - + /** */ public MockHand hand; + /** */ public String name; + /** */ public Color color; - // private String name; - + /** + * @param name + * @param color + */ public MockPlayer(String name, Color color) { hand = new MockHand(); this.name = name; diff --git a/mock/jrummikub/model/MockTable.java b/mock/jrummikub/model/MockTable.java index f17e5df..0ff041e 100644 --- a/mock/jrummikub/model/MockTable.java +++ b/mock/jrummikub/model/MockTable.java @@ -7,11 +7,17 @@ import java.util.List; import java.util.Map; import jrummikub.util.Pair; - +/** + * Mock class for {@link Table} + */ public class MockTable implements ITable { + /** */ public Map findStoneSet = new HashMap(); + /** */ public boolean valid = false; + /** */ public MockTable clonedTable; + /** */ public List> sets = new ArrayList>(); @Override -- cgit v1.2.3