Package org.progettoedids.entities.items
Class Key
java.lang.Object
org.progettoedids.entities.Entity
org.progettoedids.entities.items.Item
org.progettoedids.entities.items.Key
- All Implemented Interfaces:
InteractiveItem
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this item is supposed to be collected from a Room of the LabyrinthvoidinteractWithItem(CommandLogger commandLogger, Labyrinth labyrinth, String args) This method is called whenever it has been requested to the implementing Item to perform its actions.Methods inherited from class org.progettoedids.entities.Entity
getName, getSystemName, getUUID, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.progettoedids.entities.items.InteractiveItem
getName
-
Field Details
-
SYSTEM_NAME
- See Also:
-
NAME
- See Also:
-
WEIGHT
public static final int WEIGHT- See Also:
-
-
Constructor Details
-
Key
public Key()
-
-
Method Details
-
canBeCollected
public boolean canBeCollected()Description copied from class:ItemReturns whether this item is supposed to be collected from a Room of the Labyrinth- Specified by:
canBeCollectedin classItem- Returns:
- true if this Item can be collected
-
interactWithItem
Description copied from interface:InteractiveItemThis method is called whenever it has been requested to the implementing Item to perform its actions.- Specified by:
interactWithItemin interfaceInteractiveItem- Parameters:
commandLogger- the CommandLogger onto which the user typed responses are recordedlabyrinth- the labyrinth on which the interaction actions are performedargs- the arguments for the command to interpret
-