Uses of Class
games.stendhal.common.parser.ExpressionMatcher
Packages that use ExpressionMatcher
Package
Description
implements the NPC conversation parser.
-
Uses of ExpressionMatcher in games.stendhal.common.parser
Subclasses of ExpressionMatcher in games.stendhal.common.parserModifier and TypeClassDescriptionfinal classCaseInsensitiveExprMatcher creates an ExpressionMatcher with exact and case insensitive matching.classExactExprMatcher creates an ExpressionMatcher with exact matching.final classJokerExprMatcher creates an ExpressionMatcher for joker matching.classSimilarExprMatcher creates an ExpressionMatcher with similarity matching.Methods in games.stendhal.common.parser that return ExpressionMatcherModifier and TypeMethodDescriptionExpression.getMatcher()Return matcher used for matching this expression.Sentence.getMatcher()Return the expression matcher of the first expression.Methods in games.stendhal.common.parser with parameters of type ExpressionMatcherModifier and TypeMethodDescriptionstatic ExpressionConversationParser.createTriggerExpression(String text, ExpressionMatcher matcher) Create trigger expression to match the parsed user input in the FSM engine.static SentenceConversationParser.parse(String text, ConversationContext ctx, ExpressionMatcher matcher) Parse the given text sentence using an ConversationContext and an explicit Expression matcher.static SentenceConversationParser.parse(String text, ExpressionMatcher matcher) Parse the given text sentence using an explicit Expression matcher.voidExpression.setMatcher(ExpressionMatcher matcher) Set Expression matcher. -
Uses of ExpressionMatcher in games.stendhal.server.entity.npc
Methods in games.stendhal.server.entity.npc with parameters of type ExpressionMatcherModifier and TypeMethodDescriptionvoidSpeakerNPC.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
Methods in games.stendhal.server.entity.npc.fsm with parameters of type ExpressionMatcherModifier and TypeMethodDescriptionvoidEngine.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.voidEngine.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.