From 69753a0d369582ba5eac4c36023e3b6d5c2c52b3 Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Sat, 3 Feb 2018 23:35:05 +0100 Subject: Implementing the 'Start Simulation' broadcast --- src/main/java/fr/umlv/java/wallj/viewer/InputHandler.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/fr/umlv/java/wallj/viewer/InputHandler.java b/src/main/java/fr/umlv/java/wallj/viewer/InputHandler.java index 9eea443..9d5aa9f 100644 --- a/src/main/java/fr/umlv/java/wallj/viewer/InputHandler.java +++ b/src/main/java/fr/umlv/java/wallj/viewer/InputHandler.java @@ -1,10 +1,7 @@ package fr.umlv.java.wallj.viewer; import fr.umlv.java.wallj.board.TileVec2; -import fr.umlv.java.wallj.event.BombSetupOrder; -import fr.umlv.java.wallj.event.ConfirmOrder; -import fr.umlv.java.wallj.event.QuitGameOrder; -import fr.umlv.java.wallj.event.MoveRobotOrder; +import fr.umlv.java.wallj.event.*; import fr.umlv.zen5.ApplicationContext; import fr.umlv.zen5.Event; import fr.umlv.zen5.KeyboardKey; @@ -60,6 +57,9 @@ public final class InputHandler { case Q: events.add(new QuitGameOrder()); break; + case S: + events.add(new SimulationStartOrder()); + break; } } } -- cgit v1.2.3