Class ConversationContext

java.lang.Object
games.stendhal.common.parser.ConversationContext
Direct Known Subclasses:
ConvCtxForMatcher, ConvCtxForMatchingSource

public class ConversationContext extends Object
NPC conversation context holder. TODO mf - manage conversation state in the NPC conversation engine
Author:
Martin Fuchs
  • Field Details

    • forMatching

      protected boolean forMatching
      Flag for sentences to be used for matching.
    • mergeExpressions

      protected boolean mergeExpressions
      Flag to enable Expression merging.
    • ignoreIgnorable

      protected boolean ignoreIgnorable
      Flag to enable ignoring of words marked with the type IGN.
  • Constructor Details

    • ConversationContext

      public ConversationContext()
  • Method Details

    • setState

      public void setState(int state)
    • getState

      public int getState()
    • setForMatching

      public void setForMatching(boolean forMatching)
    • isForMatching

      public boolean isForMatching()
    • setMergeExpressions

      public void setMergeExpressions(boolean mergeExpressions)
    • getMergeExpressions

      public boolean getMergeExpressions()
    • setIgnoreIgnorable

      public void setIgnoreIgnorable(boolean ignoreIgnorable)
    • getIgnoreIgnorable

      public boolean getIgnoreIgnorable()
    • hashCode

      public int hashCode()
      Default implementation of hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Default implementation of equals()
      Overrides:
      equals in class Object