Package games.stendhal.common.parser


package games.stendhal.common.parser
implements the NPC conversation parser.

To make the conversation between players and NPCs more flexible, the NPC Conversation Parser was invented. Its aim is, to go beyond simple keywords and the very constrained, previous imperative syntax.

For more information please see ConversationParser.odp.

  • Class Summary
    Class
    Description
    sorts a array lists based on the length, the order of list with the same length is undefined but consistent.
    CaseInsensitiveExprMatcher creates an ExpressionMatcher with exact and case insensitive matching.
    CompoundName is used to store compound names.
    Create a ConversationContext for matching.
    Create a ConversationContext with de-activated Expression merging and word ignoring.
    NPC conversation context holder.
    Parser for conversations with a SpeakerNPC This class parses strings in English language and returns them as Sentence objects.
    ExactExprMatcher creates an ExpressionMatcher with exact matching.
    An Expression is part of a Sentence.
    ExpressionMatcher is used to compare Expression in various matching modes.
    An ExpressionType defines the type of an Expression object.
    JokerExprMatcher creates an ExpressionMatcher for joker matching.
    Returns structure for Sentence.findMatchingName().
    PunctuationParser is used to trim preceding and trailing punctuation characters from a string.
    ConversationParser returns the parsed sentence in this class.
    This utility class is used to create string representations of sentences by separating words by space characters.
    SentenceImplementation contains the implementation details of building Sentence objects.
    SimilarExprMatcher creates an ExpressionMatcher with similarity matching.
    TriggerList can be used to create a list of Expressions from Strings and search for Expressions in this list.
    Word list entry, used to categorise words.
    WordList stores a list of words recognized by the ConversationParser.
  • Enum Class Summary
    Enum Class
    Description