public class SimpleItem extends Object implements Item, Serializable
Item that provides
non-interactive items.| Constructor and Description |
|---|
SimpleItem(int id)
Creates an instance of
SimpleItem. |
| Modifier and Type | Method and Description |
|---|---|
int |
getID()
Returns the item's identifier.
|
LevelBoard.ActionResult |
giveTo(CharacterManager characterManager)
Called when this
Item is being given to the character. |
public SimpleItem(int id)
SimpleItem.id - the item's identifierpublic int getID()
public LevelBoard.ActionResult giveTo(CharacterManager characterManager)
Item is being given to the character.
This method does nothing, since we're only supporting non-interactive
items in this class.Copyright © 2013. All Rights Reserved.