org.deken.game.movement.actions
Class ScriptTimeDirectionAction

java.lang.Object
  extended by org.deken.game.movement.actions.ScriptMovementAction
      extended by org.deken.game.movement.actions.ScriptTimeDirectionAction

public class ScriptTimeDirectionAction
extends ScriptMovementAction

Title: ScriptTimeDirection

Description: TODO

Copyright: Copyright (c) Dec 8, 2012

Version:
1.0
Author:
Gary Deken

Field Summary
 
Fields inherited from class org.deken.game.movement.actions.ScriptMovementAction
actionXMovement, actionYMovement, done, gameVector, overTime, parent, speed
 
Constructor Summary
ScriptTimeDirectionAction(long actionTime, float direction)
          Action to move in a direction for a length of time.
 
Method Summary
 ScriptTimeDirectionAction copy()
           
protected  void resetSub()
           
protected  void start()
           
 void update(long elapseTime)
           
 
Methods inherited from class org.deken.game.movement.actions.ScriptMovementAction
getActionXMovement, getActionYMovement, getDirection, getGameVector, getNoAction, getOverTime, isDone, reset, setDone, startAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptTimeDirectionAction

public ScriptTimeDirectionAction(long actionTime,
                                 float direction)
Action to move in a direction for a length of time. Setting the time to zero (0), causes the sprite to turn, but not move.

Parameters:
actionTime -
direction -
Method Detail

copy

public ScriptTimeDirectionAction copy()
Specified by:
copy in class ScriptMovementAction

update

public void update(long elapseTime)
Specified by:
update in class ScriptMovementAction

resetSub

protected void resetSub()
Specified by:
resetSub in class ScriptMovementAction

start

protected void start()
Specified by:
start in class ScriptMovementAction