|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlab1.GameController
public class GameController
The controller class of the framework. Listens to user keystrokes and passes them on to the current game.
| Constructor Summary | |
|---|---|
GameController(GameView view)
Creats a new GameContoller associated with supplied view. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GameController(GameView view)
| Method Detail |
|---|
public void startGame(GameModel gameModel)
gameModel - Game to startpublic void stopGame()
public void run()
run in interface java.lang.Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||