public class GameController
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
GameController(GameView view)
Creats a new GameContoller associated with supplied view.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
This code runs the game in a different thread.
|
void |
startGame(GameModel gameModel)
Starts a new game.
|
void |
stopGame()
Stops the currently running game, if any.
|
public GameController(GameView view)
public void startGame(GameModel gameModel)
gameModel
- Game to startpublic void stopGame()
public void run()
run
in interface java.lang.Runnable