From 8b763a817b21aff45d704940ad2e17799dc7bb43 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 7 Jun 2011 21:51:20 +0200 Subject: Saving is working git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@382 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/model/MockHand.java | 1 + mock/jrummikub/model/MockPlayer.java | 1 + mock/jrummikub/model/MockRoundState.java | 1 + mock/jrummikub/model/MockTable.java | 1 + mock/jrummikub/view/MockView.java | 21 ++++++++++++--------- 5 files changed, 16 insertions(+), 9 deletions(-) (limited to 'mock/jrummikub') diff --git a/mock/jrummikub/model/MockHand.java b/mock/jrummikub/model/MockHand.java index ab949d0..13f6450 100644 --- a/mock/jrummikub/model/MockHand.java +++ b/mock/jrummikub/model/MockHand.java @@ -11,6 +11,7 @@ import jrummikub.util.Pair; /** * Mock class for {@link Hand} */ +@SuppressWarnings("serial") public class MockHand implements IHand { /** */ public List> stones = new ArrayList>(); diff --git a/mock/jrummikub/model/MockPlayer.java b/mock/jrummikub/model/MockPlayer.java index 0f83528..f7baee8 100644 --- a/mock/jrummikub/model/MockPlayer.java +++ b/mock/jrummikub/model/MockPlayer.java @@ -3,6 +3,7 @@ package jrummikub.model; /** * Mock class for {@link Player} */ +@SuppressWarnings("serial") public class MockPlayer implements IPlayer { /** */ public IHand hand; diff --git a/mock/jrummikub/model/MockRoundState.java b/mock/jrummikub/model/MockRoundState.java index 3f64d53..c387396 100644 --- a/mock/jrummikub/model/MockRoundState.java +++ b/mock/jrummikub/model/MockRoundState.java @@ -7,6 +7,7 @@ import java.util.List; /** * Mock class for {@link RoundState} */ +@SuppressWarnings("serial") public class MockRoundState implements IRoundState { /** */ public MockTable table; diff --git a/mock/jrummikub/model/MockTable.java b/mock/jrummikub/model/MockTable.java index b077b7f..295321c 100644 --- a/mock/jrummikub/model/MockTable.java +++ b/mock/jrummikub/model/MockTable.java @@ -11,6 +11,7 @@ import jrummikub.util.Pair; /** * Mock class for {@link Table} */ +@SuppressWarnings("serial") public class MockTable implements ITable { /** */ public Map findStoneSet = new HashMap(); diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index 044e52f..80240a9 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -1,11 +1,14 @@ package jrummikub.view; import java.awt.Color; +import java.io.File; import java.util.Collection; import jrummikub.model.Stone; import jrummikub.util.IEvent; +import jrummikub.util.IEvent1; import jrummikub.util.MockEvent; +import jrummikub.util.MockEvent1; /** * Mock class for View @@ -41,11 +44,11 @@ public class MockView implements IView { /** */ public MockEvent menuNewGameEvent = new MockEvent(); /** */ - public MockEvent menuLoadEvent = new MockEvent(); + public MockEvent menuQuitEvent = new MockEvent(); /** */ - public MockEvent menuSaveEvent = new MockEvent(); + public MockEvent1 loadEvent = new MockEvent1(); /** */ - public MockEvent menuQuitEvent = new MockEvent(); + public MockEvent1 saveEvent = new MockEvent1(); @Override public MockTablePanel getTablePanel() { @@ -137,17 +140,17 @@ public class MockView implements IView { } @Override - public IEvent getMenuLoadEvent() { - return menuLoadEvent; + public IEvent getMenuQuitEvent() { + return menuQuitEvent; } @Override - public IEvent getMenuSaveEvent() { - return menuSaveEvent; + public IEvent1 getLoadEvent() { + return loadEvent; } @Override - public IEvent getMenuQuitEvent() { - return menuQuitEvent; + public IEvent1 getSaveEvent() { + return saveEvent; } } -- cgit v1.2.3