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
|
@ -10,11 +10,17 @@ import jrummikub.util.Event2;
|
|||
import jrummikub.util.IEvent1;
|
||||
import jrummikub.util.IEvent2;
|
||||
import jrummikub.util.Pair;
|
||||
|
||||
/**
|
||||
* Mock class for HandPanel
|
||||
*/
|
||||
public class MockHandPanel implements IHandPanel {
|
||||
/** */
|
||||
public Event2<Stone, Boolean> stoneClickEvent = new Event2<Stone, Boolean>();
|
||||
/** */
|
||||
public List<Pair<Stone, Position>> stones;
|
||||
/** */
|
||||
public Event2<Stone, Boolean> rangeClickEvent = new Event2<Stone, Boolean>();
|
||||
/** */
|
||||
public Event1<Position> clickEvent = new Event1<Position>();
|
||||
|
||||
@Override
|
||||
|
|
|
@ -3,10 +3,17 @@ package jrummikub.view;
|
|||
import jrummikub.util.IEvent;
|
||||
import jrummikub.util.MockEvent;
|
||||
|
||||
/**
|
||||
* Mock class for PlayerPanel
|
||||
*/
|
||||
public class MockPlayerPanel implements IPlayerPanel {
|
||||
/** */
|
||||
public MockEvent endTurnEvent = new MockEvent();
|
||||
/** */
|
||||
public MockHandPanel handPanel = new MockHandPanel();
|
||||
/** */
|
||||
public MockEvent sortByGroupsEvent = new MockEvent();
|
||||
/** */
|
||||
public MockEvent sortByRunsEvent = new MockEvent();
|
||||
|
||||
@Override
|
||||
|
|
|
@ -4,10 +4,14 @@ import jrummikub.model.Stone;
|
|||
import jrummikub.util.Event2;
|
||||
import jrummikub.util.IEvent2;
|
||||
|
||||
/**
|
||||
* Mock class for StoneCollectionPanel
|
||||
*/
|
||||
public class MockStoneCollectionPanel implements IStoneCollectionPanel {
|
||||
|
||||
public Event2<Stone,Boolean> stoneClickEvent = new Event2<Stone, Boolean>();
|
||||
public Event2<Stone,Boolean> setClickEvent = new Event2<Stone, Boolean>();
|
||||
/** */
|
||||
public Event2<Stone, Boolean> stoneClickEvent = new Event2<Stone, Boolean>();
|
||||
/** */
|
||||
public Event2<Stone, Boolean> setClickEvent = new Event2<Stone, Boolean>();
|
||||
|
||||
@Override
|
||||
public IEvent2<Stone, Boolean> getStoneClickEvent() {
|
||||
|
|
|
@ -9,20 +9,34 @@ import jrummikub.util.IEvent1;
|
|||
import jrummikub.util.IEvent2;
|
||||
import jrummikub.util.Pair;
|
||||
|
||||
/**
|
||||
* Mock class for TablePanel
|
||||
*/
|
||||
public class MockTablePanel implements ITablePanel {
|
||||
|
||||
/** */
|
||||
public Event2<Stone, Boolean> stoneClickEvent = new Event2<Stone, Boolean>();
|
||||
/** */
|
||||
public Event2<Stone, Boolean> setClickEvent = new Event2<Stone, Boolean>();
|
||||
/** */
|
||||
public Event2<Stone, Boolean> rangeClickEvent = new Event2<Stone, Boolean>();
|
||||
/** */
|
||||
public Event1<Position> clickEvent = new Event1<Position>();
|
||||
/** */
|
||||
public Event1<StoneSet> leftConnectorClickEvent = new Event1<StoneSet>();
|
||||
/** */
|
||||
public Event1<StoneSet> rightConnectorClickEvent = new Event1<StoneSet>();
|
||||
|
||||
/** */
|
||||
public MockStoneCollectionPanel stoneCollectionPanel = new MockStoneCollectionPanel();
|
||||
/** */
|
||||
public String leftPlayerName;
|
||||
/** */
|
||||
public String topPlayerName;
|
||||
/** */
|
||||
public String rightPlayerName;
|
||||
|
||||
/** */
|
||||
public Iterable<Pair<StoneSet, Position>> stoneSets;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -5,19 +5,30 @@ import java.util.Collection;
|
|||
import jrummikub.model.Stone;
|
||||
import jrummikub.util.IEvent;
|
||||
import jrummikub.util.MockEvent;
|
||||
|
||||
/**
|
||||
* Mock class for View
|
||||
*/
|
||||
public class MockView implements IView {
|
||||
/** */
|
||||
public MockPlayerPanel playerPanel = new MockPlayerPanel();
|
||||
/** */
|
||||
public MockTablePanel tablePanel = new MockTablePanel();
|
||||
|
||||
/** */
|
||||
public Collection<Stone> selectedStones;
|
||||
|
||||
/** */
|
||||
public String currentPlayerName;
|
||||
/** */
|
||||
public boolean displayStartTurnPanel = false;
|
||||
/** */
|
||||
public boolean displayWinPanel = false;
|
||||
|
||||
/** */
|
||||
public MockEvent startTurnEvent = new MockEvent();
|
||||
/** */
|
||||
public MockEvent quitEvent = new MockEvent();
|
||||
/** */
|
||||
public MockEvent newGameEvent = new MockEvent();
|
||||
|
||||
@Override
|
||||
|
|
Reference in a new issue