package com.tiedup.remake.dialogue;

/**
 * A single dialogue variant with text, weight, and type.
 *
 * Personality System: Data-driven dialogue
 */
public class DialogueVariant {

    private final String text;
    private final int weight;
    private final boolean isAction;

    public DialogueVariant(String text, int weight, boolean isAction) {
        this.text = text;
        this.weight = weight;
        this.isAction = isAction;
    }

    public DialogueVariant(String text, int weight) {
        this(text, weight, false);
    }

    public DialogueVariant(String text) {
        this(text, 10, false);
    }

    public String getText() {
        return text;
    }

    public int getWeight() {
        return weight;
    }

    /**
     * Whether this is an action (displayed as *action*) or speech.
     */
    public boolean isAction() {
        return isAction;
    }
}
