예제 #1
0
 /** Displays the next user prompt and abandons the conversation if the next prompt is null. */
 public void outputNextPrompt() {
   if (currentPrompt == null) {
     abandon(new ConversationAbandonedEvent(this));
   } else {
     context
         .getForWhom()
         .sendRawMessage(prefix.getPrefix(context) + currentPrompt.getPromptText(context));
     if (!currentPrompt.blocksForInput(context)) {
       currentPrompt = currentPrompt.acceptInput(context, null);
       outputNextPrompt();
     }
   }
 }