diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-10 03:54:48 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-10 03:54:48 +0200 |
commit | 3b49b2053e9f9d26b73db0ffc8380a60706ee095 (patch) | |
tree | 9678d5abb4af070bbf0fd89c684e91f5fd472c31 /mock/jrummikub/model | |
parent | 4a860e53cf6f2f97f18785673399498609e6504b (diff) | |
download | JRummikub-3b49b2053e9f9d26b73db0ffc8380a60706ee095.tar JRummikub-3b49b2053e9f9d26b73db0ffc8380a60706ee095.zip |
Added all missing comments
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@213 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock/jrummikub/model')
-rw-r--r-- | mock/jrummikub/model/MockGameState.java | 9 | ||||
-rw-r--r-- | mock/jrummikub/model/MockHand.java | 10 | ||||
-rw-r--r-- | mock/jrummikub/model/MockPlayer.java | 13 | ||||
-rw-r--r-- | mock/jrummikub/model/MockTable.java | 8 |
4 files changed, 32 insertions, 8 deletions
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<MockPlayer> players; + /** */ public int activePlayer; + /** */ public StoneHeap gameHeap; + /** */ public MockGameState() { table = new MockTable(); players = new ArrayList<MockPlayer>(); 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<Pair<Stone, Position>> stones = new ArrayList<Pair<Stone, Position>>(); - + /** */ public Set<Stone> pickups = new HashSet<Stone>(); - + /** */ public Iterable<Pair<Stone, Position>> 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<Stone, StoneSet> findStoneSet = new HashMap<Stone, StoneSet>(); + /** */ public boolean valid = false; + /** */ public MockTable clonedTable; + /** */ public List<Pair<StoneSet, Position>> sets = new ArrayList<Pair<StoneSet, Position>>(); @Override |