Represents a factory class that contains important functions for building dialogues.
final DialogueFactory sendOption(String option1, Runnable action1, String option2, Runnable action2)
Appends the OptionDialogue onto the current dialogue chain.
List< Runnable > getActions()
Gets the list of actions for this dialogue.
void accept(DialogueFactory factory)
OptionDialogue(String option1, Runnable action1, String option2, Runnable action2, String option3, Runnable action3)
Creates a new OptionDialogue.
final List< Runnable > actions
The list of actions for this dialogue.
OptionDialogue(String option1, Runnable action1, String option2, Runnable action2, String option3, Runnable action3, String option4, Runnable action4, String option5, Runnable action5)
Creates a new OptionDialogue.
OptionDialogue(String option1, Runnable action1, String option2, Runnable action2)
Creates a new OptionDialogue.
final String[] lines
The text for this dialogue.
String[] getLines()
Gets the text for this dialogue.
OptionDialogue(String option1, Runnable action1, String option2, Runnable action2, String option3, Runnable action3, String option4, Runnable action4)
Creates a new OptionDialogue.
The chain-able itemcontainer that allows implementing dialogue factories the ability to chain togethe...