summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub/model
diff options
context:
space:
mode:
Diffstat (limited to 'mock/jrummikub/model')
-rw-r--r--mock/jrummikub/model/MockGameState.java9
-rw-r--r--mock/jrummikub/model/MockHand.java10
-rw-r--r--mock/jrummikub/model/MockPlayer.java13
-rw-r--r--mock/jrummikub/model/MockTable.java8
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