diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-08 21:58:16 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-08 21:58:16 +0200 |
commit | 45d5b3ae10ed8cfbecb5489636093c6fb0576970 (patch) | |
tree | 1aa1c012f46fe204d997e8c6896940800f5461bb /mock/jrummikub/view | |
parent | 2e376414b941da3c6fa3c20ddad085c695175542 (diff) | |
download | JRummikub-45d5b3ae10ed8cfbecb5489636093c6fb0576970.tar JRummikub-45d5b3ae10ed8cfbecb5489636093c6fb0576970.zip |
Implement pause function
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@390 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock/jrummikub/view')
-rw-r--r-- | mock/jrummikub/view/MockPlayerPanel.java | 3 | ||||
-rw-r--r-- | mock/jrummikub/view/MockView.java | 20 |
2 files changed, 22 insertions, 1 deletions
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<File> loadEvent = new MockEvent1<File>(); /** */ public MockEvent1<File> saveEvent = new MockEvent1<File>(); + /** */ + 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; + } } |