package me.sashegdev.fabled_hearts.dialog; import me.sashegdev.fabled_hearts.api.dialog.IDialogCondition; import me.sashegdev.fabled_hearts.api.dialog.IDialogEffect; import java.util.List; public class DialogNode { private final String id; private final String text; private final String animation; private final List choices; public DialogNode(String id, String text, String animation, List choices) { this.id = id; this.text = text; this.animation = animation; this.choices = choices; } public String getId() { return id; } public String getText() { return text; } public String getAnimation() { return animation; } public List getChoices() { return choices; } public static class DialogChoice { private final String text; private final String nextNodeId; private final List conditions; private final List effects; public DialogChoice(String text, String nextNodeId, List conditions, List effects) { this.text = text; this.nextNodeId = nextNodeId; this.conditions = conditions; this.effects = effects; } public String getText() { return text; } public String getNextNodeId() { return nextNodeId; } public List getConditions() { return conditions; } public List getEffects() { return effects; } } }