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
ConstructorsConstructorDescriptionNPCChatting(SpeakerNPC first, SpeakerNPC second, List<String> conversations, String explainations, Observer n) constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidonTurnReached(int currentTurn) This method is called when the turn number is reached.voidupdate(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:TurnListenerThis method is called when the turn number is reached.- Specified by:
onTurnReachedin interfaceTurnListener- Parameters:
currentTurn- current turn number
-