Class MonologueBehaviour

java.lang.Object
games.stendhal.server.entity.npc.behaviour.impl.MonologueBehaviour
All Implemented Interfaces:
TurnListener

public final class MonologueBehaviour extends Object implements 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 Details

    • MonologueBehaviour

      public MonologueBehaviour(SpeakerNPC speakerNPC, String[] repeatedText, int minutes)
      Creates a new MonologueBehaviour.
      Parameters:
      speakerNPC - SpeakerNPC
      repeatedText - text to repeat
      minutes - after how many minutes to repeat text
  • Method Details

    • onTurnReached

      public void onTurnReached(int currentTurn)
      Description copied from interface: TurnListener
      This method is called when the turn number is reached.
      Specified by:
      onTurnReached in interface TurnListener
      Parameters:
      currentTurn - current turn number