public abstract class BooleanPrompt extends ValidatingPrompt
END_OF_CONVERSATION| Constructor and Description | 
|---|
BooleanPrompt()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract Prompt | 
acceptValidatedInput(ConversationContext context,
                    boolean input)
Override this method to perform some action with the user's boolean
 response. 
 | 
protected Prompt | 
acceptValidatedInput(ConversationContext context,
                    String input)
Override this method to accept and processes the validated input from
 the user. 
 | 
protected boolean | 
isInputValid(ConversationContext context,
            String input)
Override this method to check the validity of the player's input. 
 | 
acceptInput, blocksForInput, getFailedValidationTextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPromptTextprotected boolean isInputValid(ConversationContext context, String input)
ValidatingPromptisInputValid in class ValidatingPromptcontext - Context information about the conversation.input - The player's raw console input.protected Prompt acceptValidatedInput(ConversationContext context, String input)
ValidatingPromptacceptValidatedInput in class ValidatingPromptcontext - Context information about the conversation.input - The validated input text from the user.protected abstract Prompt acceptValidatedInput(ConversationContext context, boolean input)
context - Context information about the conversation.input - The user's boolean response.Prompt in the prompt graph.Copyright © 2015. All rights reserved.