SpecialTopicclass
SpecialTopic is the base class for two kinds of TopicEntry that extend the conversation system beyong basic ask/tell: SayTopic and QueryTopic. The SpecialTopic class defines the common handling but is not used directly in game code, which will use either SayTopic or QueryTopic
class
SpecialTopic
:
ActorTopicEntry
Superclass Tree (in declaration order)
SpecialTopic
ActorTopicEntry
ReplaceRedirector
Redirector
` object
[
TopicEntry](../object/TopicEntry.html)
object`
Subclass Tree
SpecialTopic
QueryTopic
SayTopic
Global Objects
(none)
Summary of Properties
askMatchObj
autoName
rex
tellMatchObj
Inherited from ActorTopicEntry
:
activated
active
convKeys
curiosityAroused
getActor
impliesGreeting
isConversational
keyTopics
listOrder
name
suggestAs
timesInvoked
Inherited from TopicEntry
:
includeInList
isActive
matchExactCase
matchObj
matchPattern
matchScore
scoreBoost
topicMatched
Summary of Methods
Inherited from ActorTopicEntry
:
activate
addToConvKeyTable
buildName
curiositySatisfied
deactivate
getKeyTopics
handleTopic
isReachable
nodeActive
showKeyTopics
timesToSuggest
Inherited from ReplaceRedirector
:
redirect
Inherited from Redirector
:
doInstead
doNested
doOtherAction
Inherited from TopicEntry
:
addTopic
matchTopic
scoreBooster
topicResponse
Properties
askMatchObj
If we want this SpecialTopic also to match an ASK ABOUT command, define the askMatchObj to hold the topic or list of topics that said ASK ABOUT command should match here.
autoName
OVERRIDDEN
For a SpeciallTopic make constructing a name property automatically the default.
rex
A Regular expression pattern to look for the kinds of characters we’d expect to find in our matchPattern property if it actually represents a regular expression for this TopicEntry to match. We use this to help determine whether the matchPattern property contains a regex to match our the vocab of a Topic object to create on the fly.
tellMatchObj
If we want this SpecialTopic also to match an TELL ABOUT command, define the askMatchObj to hold the topic or list of topics that said TELL ABOUT command should match here.
Methods
initializeTopicEntry ( )
OVERRIDDEN
Carry out the initialization (actually preinitialization) of a SpecialTopic
Adv3Lite Library Reference Manual
Generated on 15/03/2023 from adv3Lite version 1.6.1