diff options
author | Adam NAILI | 2018-02-03 23:35:05 +0100 |
---|---|---|
committer | Adam NAILI | 2018-02-03 23:35:05 +0100 |
commit | 69753a0d369582ba5eac4c36023e3b6d5c2c52b3 (patch) | |
tree | 0c9b6696c151c67d4c143fd85bd7610a7b506df8 | |
parent | 78bfc15d36b94058b1f896ec7c8d753e2e487a1d (diff) | |
download | wallj-69753a0d369582ba5eac4c36023e3b6d5c2c52b3.tar.gz |
Implementing the 'Start Simulation' broadcast
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/viewer/InputHandler.java | 8 |
1 files 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 @@ | |||
1 | package fr.umlv.java.wallj.viewer; | 1 | package fr.umlv.java.wallj.viewer; |
2 | 2 | ||
3 | import fr.umlv.java.wallj.board.TileVec2; | 3 | import fr.umlv.java.wallj.board.TileVec2; |
4 | import fr.umlv.java.wallj.event.BombSetupOrder; | 4 | import fr.umlv.java.wallj.event.*; |
5 | import fr.umlv.java.wallj.event.ConfirmOrder; | ||
6 | import fr.umlv.java.wallj.event.QuitGameOrder; | ||
7 | import fr.umlv.java.wallj.event.MoveRobotOrder; | ||
8 | import fr.umlv.zen5.ApplicationContext; | 5 | import fr.umlv.zen5.ApplicationContext; |
9 | import fr.umlv.zen5.Event; | 6 | import fr.umlv.zen5.Event; |
10 | import fr.umlv.zen5.KeyboardKey; | 7 | import fr.umlv.zen5.KeyboardKey; |
@@ -60,6 +57,9 @@ public final class InputHandler { | |||
60 | case Q: | 57 | case Q: |
61 | events.add(new QuitGameOrder()); | 58 | events.add(new QuitGameOrder()); |
62 | break; | 59 | break; |
60 | case S: | ||
61 | events.add(new SimulationStartOrder()); | ||
62 | break; | ||
63 | } | 63 | } |
64 | } | 64 | } |
65 | } | 65 | } |