de.rico.engine.controller
Class LightSwingController

java.lang.Object
  extended by de.rico.engine.controller.LightSwingController
All Implemented Interfaces:
ControllerIface

public class LightSwingController
extends java.lang.Object
implements ControllerIface

This class represents a controller that moves a positional light continiously between its original position and a specified turning point.

Author:
Frank Bruns

Constructor Summary
LightSwingController(PositionalLightIface light, Point3D turningPoint, float speed)
          Creates a new controller that lets the specified light move continiously between its original position and the specified turning point.
 
Method Summary
 void update(long elapsedTime)
          This methods updates the controllers actions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LightSwingController

public LightSwingController(PositionalLightIface light,
                            Point3D turningPoint,
                            float speed)
Creates a new controller that lets the specified light move continiously between its original position and the specified turning point.

Parameters:
light - positional light that ought to be moved
turningPoint - turning point
Method Detail

update

public void update(long elapsedTime)
Description copied from interface: ControllerIface
This methods updates the controllers actions

Specified by:
update in interface ControllerIface
Parameters:
elapsedTime - time between two frames