gameaction
Class Use

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

public class Use
extends AbstractGameAction

A game action that represents using an item

Author:
Frank Bruns
See Also:
Serialized Form

Constructor Summary
Use(AbstractCharacterSprite c, Hotspot hot, Item item)
           
 
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

Use

public Use(AbstractCharacterSprite c,
           Hotspot hot,
           Item item)
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