Uses of Class
games.stendhal.common.parser.ExpressionMatcher
Package
Description
implements the NPC conversation parser.
-
Uses of ExpressionMatcher in games.stendhal.common.parser
Modifier and TypeClassDescriptionclass
CaseInsensitiveExprMatcher creates an ExpressionMatcher with exact and case insensitive matching.class
ExactExprMatcher creates an ExpressionMatcher with exact matching.class
JokerExprMatcher creates an ExpressionMatcher for joker matching.class
SimilarExprMatcher creates an ExpressionMatcher with similarity matching.Modifier and TypeMethodDescriptionExpression.getMatcher()
Return matcher used for matching this expression.Sentence.getMatcher()
Return the expression matcher of the first expression.Modifier and TypeMethodDescriptionstatic Expression
ConversationParser.createTriggerExpression(String text, ExpressionMatcher matcher)
Create trigger expression to match the parsed user input in the FSM engine.static Sentence
ConversationParser.parse(String text, ConversationContext ctx, ExpressionMatcher matcher)
Parse the given text sentence using an ConversationContext and an explicit Expression matcher.static Sentence
ConversationParser.parse(String text, ExpressionMatcher matcher)
Parse the given text sentence using an explicit Expression matcher.void
Expression.setMatcher(ExpressionMatcher matcher)
Set Expression matcher. -
Uses of ExpressionMatcher in games.stendhal.server.entity.npc
Modifier and TypeMethodDescriptionvoid
SpeakerNPC.addMatching(ConversationStates state, String trigger, ExpressionMatcher matcher, ChatCondition condition, ConversationStates nextState, String reply, ChatAction action)
Adds a new transition with explicit ExpressionMatcher to the FSM. -
Uses of ExpressionMatcher in games.stendhal.server.entity.npc.fsm
Modifier and TypeMethodDescriptionvoid
Engine.addMatching(ConversationStates state, String triggerString, ExpressionMatcher matcher, ChatCondition condition, boolean secondary, ConversationStates nextState, String reply, ChatAction action)
Adds a new transition with explicit ExpressionMatcher to FSM.void
Engine.addMatching(ConversationStates state, Collection<String> triggerStrings, ExpressionMatcher matcher, ChatCondition condition, boolean secondary, ConversationStates nextState, String reply, ChatAction action)
Adds a new set of transitions to the FSM.