Class NPCChatting
java.lang.Object
games.stendhal.server.entity.npc.interaction.NPCChatting
- All Implemented Interfaces:
TurnListener
,Observer
chatting between 2 NPCs
- Author:
- yoriy
-
Constructor Summary
ConstructorDescriptionNPCChatting(SpeakerNPC first, SpeakerNPC second, List<String> conversations, String explainations, Observer n)
constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
onTurnReached(int currentTurn)
This method is called when the turn number is reached.void
update(Observable o, Object arg)
-
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 npcconversations
-explainations
-n
- - observer n
-
-
Method Details
-
update
-
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 interfaceTurnListener
- Parameters:
currentTurn
- current turn number
-