From 45d5b3ae10ed8cfbecb5489636093c6fb0576970 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 8 Jun 2011 21:58:16 +0200 Subject: Implement pause function git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@390 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockPlayerPanel.java | 3 ++- mock/jrummikub/view/MockView.java | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) (limited to 'mock') diff --git a/mock/jrummikub/view/MockPlayerPanel.java b/mock/jrummikub/view/MockPlayerPanel.java index b69c109..497e445 100644 --- a/mock/jrummikub/view/MockPlayerPanel.java +++ b/mock/jrummikub/view/MockPlayerPanel.java @@ -17,6 +17,8 @@ public class MockPlayerPanel implements IPlayerPanel { /** */ public MockEvent sortByRunsEvent = new MockEvent(); /** */ + public MockEvent pauseEvent = new MockEvent(); + /** */ public TurnMode turnMode; @Override @@ -49,5 +51,4 @@ public class MockPlayerPanel implements IPlayerPanel { public void setEndTurnMode(TurnMode turnMode) { this.turnMode = turnMode; } - } diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index b816ea9..fd7b896 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -49,6 +49,10 @@ public class MockView implements IView { public MockEvent1 loadEvent = new MockEvent1(); /** */ public MockEvent1 saveEvent = new MockEvent1(); + /** */ + public MockEvent pauseEvent = new MockEvent(); + /** */ + public MockEvent endPauseEvent = new MockEvent(); @Override public MockTablePanel getTablePanel() { @@ -157,4 +161,20 @@ public class MockView implements IView { @Override public void clearView() { } + + @Override + public void enablePauseMode(boolean enable) { + // TODO Auto-generated method stub + + } + + @Override + public IEvent getPauseEvent() { + return pauseEvent; + } + + @Override + public IEvent getEndPauseEvent() { + return endPauseEvent; + } } -- cgit v1.2.3