Package org.progettoedids.entities
Interface InteractiveOnTurnStart
- All Known Implementing Classes:
Alice,Human,Lilith,Martin,Marvin,Monster,NPC,TeleportRoom,VictoryRoom
public interface InteractiveOnTurnStart
This interface is supposed to be implemented by classes which are supposed to be "interactive" at the beginning of
a new turn.
The interface method
interactOnTurnStart(Labyrinth) is supposed to be invoked when the Player is located
in the same Room as the Entity.-
Method Summary
Modifier and TypeMethodDescriptionvoidinteractOnTurnStart(CommandLogger commandLogger, Labyrinth labyrinth) Method called in order to get the implementing class to perform its specific actions.
-
Method Details
-
interactOnTurnStart
void interactOnTurnStart(CommandLogger commandLogger, Labyrinth labyrinth) throws GameOverException, VictoryException Method called in order to get the implementing class to perform its specific actions.- Parameters:
commandLogger- The CommandLogger onto which the user typed commands are saved. Must not be nulllabyrinth- The Labyrinth on which the interaction actions are performed. Must not be null- Throws:
GameOverException- if some conditions caused the user to lose the gameVictoryException- if some conditions caused the user to win the game
-