Class MonologueBehaviour
java.lang.Object
games.stendhal.server.entity.npc.behaviour.impl.MonologueBehaviour
- All Implemented Interfaces:
TurnListener
causes the speaker npc to loop a repeated monologue while he is not attending a player.
the text for repeating can have more than one option, in which case he says each in turn.
- Author:
- kymara
-
Constructor Summary
ConstructorsConstructorDescriptionMonologueBehaviour(SpeakerNPC speakerNPC, String[] repeatedText, int minutes) Creates a new MonologueBehaviour. -
Method Summary
Modifier and TypeMethodDescriptionvoidonTurnReached(int currentTurn) This method is called when the turn number is reached.
-
Constructor Details
-
MonologueBehaviour
Creates a new MonologueBehaviour.- Parameters:
speakerNPC- SpeakerNPCrepeatedText- text to repeatminutes- after how many minutes to repeat text
-
-
Method Details
-
onTurnReached
public void onTurnReached(int currentTurn) Description copied from interface:TurnListenerThis method is called when the turn number is reached.- Specified by:
onTurnReachedin interfaceTurnListener- Parameters:
currentTurn- current turn number
-