Package org.progettoedids.entities.items
Interface InteractiveItem
- All Known Implementing Classes:
Apple,BrokenFountain,Food,Key,Pear
public interface InteractiveItem
The InteractiveItem interface is supposed to be implemented by an Item if it is supposed to be used at request by
the user.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()voidinteractWithItem(CommandLogger commandLogger, Labyrinth labyrinth, String args) This method is called whenever it has been requested to the implementing Item to perform its actions.
-
Method Details
-
interactWithItem
This method is called whenever it has been requested to the implementing Item to perform its actions.- 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
-
getName
String getName()
-