From 2d198820a9634c30d62c77f6f310aa227ee29733 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Fri, 27 May 2011 17:54:46 +0200 Subject: GameControl tests, temporary handler in SettingsControl and small fixes git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@288 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/impl/SettingsPanel.java | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/jrummikub/view') diff --git a/src/jrummikub/view/impl/SettingsPanel.java b/src/jrummikub/view/impl/SettingsPanel.java index 03cfd4c..7200a16 100644 --- a/src/jrummikub/view/impl/SettingsPanel.java +++ b/src/jrummikub/view/impl/SettingsPanel.java @@ -31,6 +31,7 @@ import javax.swing.event.DocumentListener; import jrummikub.model.GameSettings; import jrummikub.model.PlayerSettings; +import jrummikub.util.Event; import jrummikub.util.Event1; import jrummikub.util.IEvent; import jrummikub.util.IEvent1; @@ -66,15 +67,7 @@ class SettingsPanel extends JPanel implements ISettingsPanel { private LinkedList playerSettingsPanels = new LinkedList(); private Event1 settingsChangeEvent = new Event1(); - private Event1 startGameEvent = new Event1(); - - /* - * @Override public IEvent1 getSettingsChangeEvent() { return - * settingsChangeEvent; } - * - * @Override public IEvent1 getStartGameEvent() { return - * startGameEvent; } - */ + private Event startGameEvent = new Event(); private void addPlayerSettings() { // Find unused player name @@ -177,7 +170,7 @@ class SettingsPanel extends JPanel implements ISettingsPanel { startButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { - startGameEvent.emit(gameSettings); + startGameEvent.emit(); } }); add(startButton, c); @@ -392,8 +385,7 @@ class SettingsPanel extends JPanel implements ISettingsPanel { @Override public IEvent getStartGameEvent() { - // TODO Auto-generated method stub - return null; + return startGameEvent; } @Override -- cgit v1.2.3