Package nz.ac.vuw.ecs.swen225.gp22.app
Class Controller
java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.app.Keys
nz.ac.vuw.ecs.swen225.gp22.app.Controller
- All Implemented Interfaces:
KeyListener,EventListener
Controller that connects key actions to actions.
- Author:
- Molly
-
Constructor Summary
ConstructorsConstructorDescriptionController(Base b) Menu commands, exiting, replaying, making new levels.Controller(Base b, boolean paused) Controller for when game is running.Controller(Base b, JDialog dialog) Controller for Pop-up window. -
Method Summary
Methods inherited from class nz.ac.vuw.ecs.swen225.gp22.app.Keys
keyPressed, keyReleased, keyTyped, setAction, setAction
-
Constructor Details
-
Controller
Menu commands, exiting, replaying, making new levels.- Parameters:
b- Base that actions happen
-
Controller
Controller for when game is running.- Parameters:
b- base which commands get run onpaused- is the game paused?
-
Controller
Controller for Pop-up window.- Parameters:
b- current basedialog- current pop-up
-