public interface Item
extends com.sun.sgs.app.ManagedObject
| 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. |
int getID()
LevelBoard.ActionResult giveTo(CharacterManager characterManager)
Item is being given to the character.
This is useful if you want interactive items (eg, cursing the
user as soon as they pickup a talisman).characterManager - the character to whom this Item
will be given.giveTo actionCopyright © 2013. All Rights Reserved.