@Test public void testShutdown() throws Exception { GameScene theScene = mock(GameScene.class); GameView theGameView = mock(GameView.class); GameRuntime theRuntime = mock(GameRuntime.class); GameLoop theLoop = new GameLoop(theScene, theGameView, theRuntime); assertFalse(theLoop.isShutdown()); theLoop.shutdown(); assertTrue(theLoop.isShutdown()); }
public void shutdown() { shutdownSignal = true; }
GameLoop implements Runnable { public void shutdown() { shutdownSignal = true; } }
GameLoop implements Runnable { public void shutdown() { shutdownSignal = true; } GameLoop(GameScene aScene, GameView aHumanGameView, GameRuntime aRuntime); }
GameLoop implements Runnable { public void shutdown() { shutdownSignal = true; } GameLoop(GameScene aScene, GameView aHumanGameView, GameRuntime aRuntime); void addGameView(GameView aNewGameView); GameView getHumanGameView(); GameScene getScene(); @Override void run(); void singleRunOnlyUpdateGameView(); void singleRun(); void shutdown(); boolean isShutdown(); }
GameLoop implements Runnable { public void shutdown() { shutdownSignal = true; } GameLoop(GameScene aScene, GameView aHumanGameView, GameRuntime aRuntime); void addGameView(GameView aNewGameView); GameView getHumanGameView(); GameScene getScene(); @Override void run(); void singleRunOnlyUpdateGameView(); void singleRun(); void shutdown(); boolean isShutdown();  }