java.lang.Object
games.stendhal.server.entity.npc.interaction.NPCChatting
All Implemented Interfaces:
TurnListener, Observer

public final class NPCChatting extends Object implements Observer, TurnListener
chatting between 2 NPCs
Author:
yoriy
  • Constructor Details

    • NPCChatting

      public NPCChatting(SpeakerNPC first, SpeakerNPC second, List<String> conversations, String explainations, Observer n)
      constructor
      Parameters:
      first - - first npc (who strarting conversation)
      second - - second npc
      conversations -
      explainations -
      n - - observer n
  • Method Details

    • update

      public void update(Observable o, Object arg)
      Specified by:
      update in interface Observer
    • 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