SpecialTopicclass | actor.t[4355]

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`

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

`initializeTopicEntry`

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` | `actor.t[4455]`

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 | `actor.t[4468]`

For a SpeciallTopic make constructing a name property automatically the default.

`rex` | `actor.t[4448]`

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` | `actor.t[4462]`

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 | `actor.t[4361]`

Carry out the initialization (actually preinitialization) of a SpecialTopic

Adv3Lite Library Reference Manual
Generated on 12/12/2022 from adv3Lite version 1.6