Class DialogueKey
java.lang.Object
com.csse3200.game.components.quests.DialogueKey
Key to identify dialogues based on the NPC's.
-
Constructor Summary
ConstructorsConstructorDescriptionDialogueKey
(String npcName, String[][] dialogue) Constructs a new DialogueKey. -
Method Summary
Modifier and TypeMethodDescriptionString[][]
Returns the dialogue for the dialogue task.Retrieves the name of the NPC.
-
Constructor Details
-
DialogueKey
Constructs a new DialogueKey.- Parameters:
npcName
- The name of the NPC.dialogue
- The name of the dialogue task.
-
-
Method Details
-
getNpcName
Retrieves the name of the NPC.- Returns:
- the name of the NPC.
-
getDialogue
Returns the dialogue for the dialogue task.
-