group1.control
Class PauseController

java.lang.Object
  extended by group1.control.Controller
      extended by group1.control.PauseController
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener

public class PauseController
extends Controller

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

PauseController

public PauseController(Game g)
Constructor.

Parameters:
g - The game (in the model).
Method Detail

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
keyPressed method to implement KeyListener. Called whenever a key is pressed.

Specified by:
keyPressed in interface java.awt.event.KeyListener
Overrides:
keyPressed in class Controller
Parameters:
e - The KeyEvent caught.

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
keyReleased method to implement KeyListener. Called whenever a key is released.

Specified by:
keyReleased in interface java.awt.event.KeyListener
Overrides:
keyReleased in class Controller
Parameters:
e - The KeyEvent caught.