Added all missing comments
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@213 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
4a860e53cf
commit
3b49b2053e
38 changed files with 696 additions and 263 deletions
|
@ -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>();
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue