diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ch/epfl/xblast/simulation/GraphicalSimulation.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ch/epfl/xblast/simulation/GraphicalSimulation.java b/test/ch/epfl/xblast/simulation/GraphicalSimulation.java index 1a0d88f..5706577 100644 --- a/test/ch/epfl/xblast/simulation/GraphicalSimulation.java +++ b/test/ch/epfl/xblast/simulation/GraphicalSimulation.java | |||
@@ -42,6 +42,7 @@ public class GraphicalSimulation { | |||
42 | private static JFrame buildFrame() { | 42 | private static JFrame buildFrame() { |
43 | JFrame frame = new JFrame(); | 43 | JFrame frame = new JFrame(); |
44 | frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | 44 | frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
45 | frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | ||
45 | frame.setVisible(true); | 46 | frame.setVisible(true); |
46 | return frame; | 47 | return frame; |
47 | } | 48 | } |
@@ -50,6 +51,7 @@ public class GraphicalSimulation { | |||
50 | JFrame frame = buildFrame(); | 51 | JFrame frame = buildFrame(); |
51 | XBlastComponent xblast = new XBlastComponent(); | 52 | XBlastComponent xblast = new XBlastComponent(); |
52 | frame.setContentPane(xblast); | 53 | frame.setContentPane(xblast); |
54 | frame.pack(); | ||
53 | 55 | ||
54 | for (GameState gs = INITIAL_GAMESTATE; !isSimulationOver(gs); gs = nextGameState(gs)) | 56 | for (GameState gs = INITIAL_GAMESTATE; !isSimulationOver(gs); gs = nextGameState(gs)) |
55 | displayGameState(getClientData(gs), xblast); | 57 | displayGameState(getClientData(gs), xblast); |