Package games.stendhal.common.parser
Class ConversationContext
java.lang.Object
games.stendhal.common.parser.ConversationContext
- Direct Known Subclasses:
ConvCtxForMatcher,ConvCtxForMatchingSource
NPC conversation context holder.
TODO mf - manage conversation state in the NPC conversation engine
- Author:
- Martin Fuchs
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanFlag for sentences to be used for matching.protected booleanFlag to enable ignoring of words marked with the type IGN.protected booleanFlag to enable Expression merging. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDefault implementation of equals()booleanbooleanintgetState()inthashCode()Default implementation of hashCode()booleanvoidsetForMatching(boolean forMatching) voidsetIgnoreIgnorable(boolean ignoreIgnorable) voidsetMergeExpressions(boolean mergeExpressions) voidsetState(int state)
-
Field Details
-
forMatching
protected boolean forMatchingFlag for sentences to be used for matching. -
mergeExpressions
protected boolean mergeExpressionsFlag to enable Expression merging. -
ignoreIgnorable
protected boolean ignoreIgnorableFlag 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() -
equals
Default implementation of equals()
-