testing.gameEngine.cameraTesting
Class KeyMovingCameraController

java.lang.Object
  extended by vooga.gameEngine.game.GameRelatedObject
      extended by vooga.gameEngine.controller.GameRelatedController
          extended by vooga.gameEngine.controller.CameraController
              extended by testing.gameEngine.cameraTesting.KeyMovingCameraController
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, CameraMoveListener, Tangible

public class KeyMovingCameraController
extends CameraController
implements CameraMoveListener

Author:
Jacob Harer
See Also:
Serialized Form

Constructor Summary
KeyMovingCameraController(Position p, Dimension viewableArea)
           
 
Method Summary
 void moveDown(DownInputEvent e)
           
 void moveLeft(LeftInputEvent e)
           
 void moveRight(RightInputEvent e)
           
 void moveUp(UpInputEvent e)
           
 
Methods inherited from class vooga.gameEngine.controller.CameraController
getBounds, getPosition, getRotation, getShape, getSize, getViewableArea, move, move, resize, rotate, setPosition, setRotation, setSize, setViewableArea
 
Methods inherited from class vooga.gameEngine.game.GameRelatedObject
addEventListener, clearListeners, equals, fire, fire, fire, getEventListeners, getID, getListenerCount, removeEventListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyMovingCameraController

public KeyMovingCameraController(Position p,
                                 Dimension viewableArea)
Method Detail

moveDown

public void moveDown(DownInputEvent e)
Specified by:
moveDown in interface CameraMoveListener

moveLeft

public void moveLeft(LeftInputEvent e)
Specified by:
moveLeft in interface CameraMoveListener

moveRight

public void moveRight(RightInputEvent e)
Specified by:
moveRight in interface CameraMoveListener

moveUp

public void moveUp(UpInputEvent e)
Specified by:
moveUp in interface CameraMoveListener