gameaction
Class Pick

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

public class Pick
extends AbstractGameAction

A game action that represents picking an item in the game location

Author:
Frank Bruns
See Also:
Serialized Form

Constructor Summary
Pick(Player player, Item item)
          A game action that represents picking an item in the game location
 
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

Pick

public Pick(Player player,
            Item item)
A game action that represents picking an item in the game location

Parameters:
player - the player object that picks the item
item - the item that shall be picked
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