com.jme.input.thirdperson
Class ThirdPersonForwardAction

java.lang.Object
  extended by com.jme.input.action.InputAction
      extended by com.jme.input.action.KeyInputAction
          extended by com.jme.input.thirdperson.ThirdPersonForwardAction
All Implemented Interfaces:
InputActionInterface

public class ThirdPersonForwardAction
extends KeyInputAction

ThirdPersonForwardAction

Version:
$Revision: 4131 $
Author:
Joshua Slack

Field Summary
 
Fields inherited from class com.jme.input.action.InputAction
speed
 
Constructor Summary
ThirdPersonForwardAction(ThirdPersonHandler handler, float speed)
          Constructor creates a new ThirdPersonForwardAction object.
 
Method Summary
 void performAction(InputActionEvent event)
          performAction moves the node along it's positive direction vector at a speed of movement speed * time.
 
Methods inherited from class com.jme.input.action.InputAction
getSpeed, setSpeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThirdPersonForwardAction

public ThirdPersonForwardAction(ThirdPersonHandler handler,
                                float speed)
Constructor creates a new ThirdPersonForwardAction object. During construction, the character to direct and the speed at which to move the character is set.

Parameters:
handler - the associated handler
speed - the speed at which the target can move forward
Method Detail

performAction

public void performAction(InputActionEvent event)
performAction moves the node along it's positive direction vector at a speed of movement speed * time. Where time is the time between frames and 1 corresponds to 1 second.

Parameters:
event - the event that triggered the perform action method.
See Also:
InputActionInterface.performAction(InputActionEvent)