gameaction
Class Delay

java.lang.Object
  extended by gameaction.AbstractGameAction
      extended by gameaction.Delay
All Implemented Interfaces:
java.io.Serializable

public class Delay
extends AbstractGameAction

This game action class can be used to put a delay of the specified amount of miliseconds to the processing of a character'S game action queue

Author:
John Rico
See Also:
Serialized Form

Constructor Summary
Delay(AbstractCharacterSprite c, long duration)
           
 
Method Summary
 void update(long elapsedTime)
          Updates the game action
 
Methods inherited from class gameaction.AbstractGameAction
getCharacter, isSecondMethodCall
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Delay

public Delay(AbstractCharacterSprite c,
             long duration)
Method Detail

update

public void update(long elapsedTime)
Description copied from class: AbstractGameAction
Updates the game action

Specified by:
update in class AbstractGameAction
Parameters:
elapsedTime - time between two frames