com.jme.input.controls.controller
Class ActionController

java.lang.Object
  extended by com.jme.scene.Controller
      extended by com.jme.input.controls.controller.ActionController
All Implemented Interfaces:
Savable, java.io.Serializable

public class ActionController
extends Controller

ActionController allows you to assign a GameControlAction implementation to occur when a control is pressed or released.

Author:
Matthew D. Hicks
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jme.scene.Controller
RT_CLAMP, RT_CYCLE, RT_WRAP
 
Constructor Summary
ActionController(GameControl control, GameControlAction action)
           
 
Method Summary
 void update(float time)
          Defined by extending classes, update is a signal to Controller that it should update whatever object(s) it is controlling.
 
Methods inherited from class com.jme.scene.Controller
getClassTag, getControllerValues, getMaxTime, getMinTime, getRepeatType, getSpeed, isActive, read, setActive, setControllerValues, setMaxTime, setMinTime, setRepeatType, setSpeed, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionController

public ActionController(GameControl control,
                        GameControlAction action)
Method Detail

update

public void update(float time)
Description copied from class: Controller
Defined by extending classes, update is a signal to Controller that it should update whatever object(s) it is controlling.

Specified by:
update in class Controller
Parameters:
time - The time in seconds between the last call to update and the current one