public abstract class FixedSetPrompt extends ValidatingPrompt
| Modifier and Type | Field | Description | 
|---|---|---|
| protected List<String> | fixedSet | 
END_OF_CONVERSATION| Constructor | Description | 
|---|---|
| FixedSetPrompt(String... fixedSet) | Creates a FixedSetPrompt from a set of strings. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| protected String | formatFixedSet() | Utility function to create a formatted string containing all the
 options declared in the constructor. | 
| protected boolean | isInputValid(ConversationContext context,
            String input) | Override this method to check the validity of the player's input. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPromptTextacceptInput, acceptValidatedInput, blocksForInput, getFailedValidationTextprotected boolean isInputValid(@NotNull ConversationContext context, @NotNull String input)
ValidatingPromptisInputValid in class ValidatingPromptcontext - Context information about the conversation.input - The player's raw console input.Copyright © 2020. All rights reserved.