/** * Constructs a ConversationFactory. * * @param plugin The plugin that owns the factory. */ public ConversationFactory(Plugin plugin) { this.plugin = plugin; isModal = true; localEchoEnabled = true; prefix = new NullConversationPrefix(); firstPrompt = Prompt.END_OF_CONVERSATION; initialSessionData = new HashMap<Object, Object>(); playerOnlyMessage = null; cancellers = new ArrayList<ConversationCanceller>(); abandonedListeners = new ArrayList<ConversationAbandonedListener>(); }
/** * Initializes a new Conversation. * * @param plugin The plugin that owns this conversation. * @param forWhom The entity for whom this conversation is mediating. * @param firstPrompt The first prompt in the conversation graph. * @param initialSessionData Any initial values to put in the conversation * context sessionData map. */ public Conversation(Plugin plugin, Conversable forWhom, Prompt firstPrompt, Map<Object, Object> initialSessionData) { this.firstPrompt = firstPrompt; this.context = new ConversationContext(plugin, forWhom, initialSessionData); this.modal = true; this.localEchoEnabled = true; this.prefix = new NullConversationPrefix(); this.cancellers = new ArrayList<ConversationCanceller>(); this.abandonedListeners = new ArrayList<ConversationAbandonedListener>(); }
/** * Constructs a ConversationFactory. * * @param plugin The plugin that owns the factory. */ public ConversationFactory(Plugin plugin) { this.plugin = plugin; isModal = true; localEchoEnabled = true; prefix = new NullConversationPrefix(); firstPrompt = Prompt.END_OF_CONVERSATION; initialSessionData = new HashMap<Object, Object>(); playerOnlyMessage = null; cancellers = new ArrayList<ConversationCanceller>(); abandonedListeners = new ArrayList<ConversationAbandonedListener>(); }
/** * Initializes a new Conversation. * * @param plugin The plugin that owns this conversation. * @param forWhom The entity for whom this conversation is mediating. * @param firstPrompt The first prompt in the conversation graph. * @param initialSessionData Any initial values to put in the conversation * context sessionData map. */ public Conversation(Plugin plugin, Conversable forWhom, Prompt firstPrompt, Map<Object, Object> initialSessionData) { this.firstPrompt = firstPrompt; this.context = new ConversationContext(plugin, forWhom, initialSessionData); this.modal = true; this.localEchoEnabled = true; this.prefix = new NullConversationPrefix(); this.cancellers = new ArrayList<ConversationCanceller>(); this.abandonedListeners = new ArrayList<ConversationAbandonedListener>(); }