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
Modifier and TypeFieldDescriptionprotected boolean
Flag for sentences to be used for matching.protected boolean
Flag to enable ignoring of words marked with the type IGN.protected boolean
Flag to enable Expression merging. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Default implementation of equals()boolean
boolean
int
getState()
int
hashCode()
Default implementation of hashCode()boolean
void
setForMatching(boolean forMatching)
void
setIgnoreIgnorable(boolean ignoreIgnorable)
void
setMergeExpressions(boolean mergeExpressions)
void
setState(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()
-