|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object group1.control.Controller group1.control.PauseController
public class PauseController
The controller for pausing the game. Accepts keyboard inputs and sets values in the local Game object appropriately.
Constructor Summary | |
---|---|
PauseController(Game g)
Constructor. |
Method Summary | |
---|---|
void |
keyPressed(java.awt.event.KeyEvent e)
keyPressed method to implement KeyListener. |
void |
keyReleased(java.awt.event.KeyEvent e)
keyReleased method to implement KeyListener. |
Methods inherited from class group1.control.Controller |
---|
isActionPressed, isDownPressed, isJumpPressed, isLeftPressed, isRightPressed, isSelectPressed, isStartPressed, isUpPressed, keyTyped, wasActionHit, wasDownHit, wasJumpHit, wasLeftHit, wasRightHit, wasSelectHit, wasStartHit, wasUpHit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PauseController(Game g)
g
- The game (in the model).Method Detail |
---|
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
keyPressed
in class Controller
e
- The KeyEvent caught.public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
keyReleased
in class Controller
e
- The KeyEvent caught.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |