QueryTopicclass | actor.t[4389]

A QueryTopic is a kind of SpecialTopic that extends the range of questions that the player (character) can ask an NPC from ASK ABOUT so-and-so to ASK WHO/WHAT/WHY/WHERE/WHETHER/IF/HOW so-and-so. The type of question to be matched (who/what/why/when etc.) needs to be defined on a QueryTopic's qType property (so that it can be matched by the QueryTopic's grammar). The remainder of the question is the Topic a particular QueryTopic matches.

`class QueryTopic : SpecialTopic`

Superclass Tree (in declaration order)

`QueryTopic`
`SpecialTopic`
`ActorTopicEntry`
`ReplaceRedirector`
`Redirector`
`object`
`TopicEntry`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

`includeInList qtype`

Inherited from `SpecialTopic` :
`askMatchObj autoName rex tellMatchObj`

Inherited from `ActorTopicEntry` :
`activated active convKeys curiosityAroused getActor impliesGreeting isConversational keyTopics listOrder name suggestAs timesInvoked`

``

``

Inherited from `TopicEntry` :
`isActive matchExactCase matchObj matchPattern matchScore scoreBoost topicMatched`

Summary of Methods

`buildName initializeTopicEntry matchTopic`

``

Inherited from `ActorTopicEntry` :
`activate addToConvKeyTable curiositySatisfied deactivate getKeyTopics handleTopic isReachable nodeActive showKeyTopics timesToSuggest`

Inherited from `ReplaceRedirector` :
`redirect`

Inherited from `Redirector` :
`doInstead doNested doOtherAction`

Inherited from `TopicEntry` :
`addTopic scoreBooster topicResponse`

Properties

`includeInList` OVERRIDDEN | `actor.t[4490]`

A QueryTopic belongs in the queryTopics list of its TopicDatabase

`qtype` | `actor.t[4422]`

The list of query types we match, e.g. 'where'. To match multiple types list them divided by a vertical bar, e.g. 'if|whether'

Methods

`buildName ( )`OVERRIDDEN | `actor.t[4466]`

When we build the name of a QueryTopic (for use in a list of topic suggestions) we need to include the query type (qType).

`initializeTopicEntry ( )`OVERRIDDEN | `actor.t[4425]`

no description available

`matchTopic (top)`OVERRIDDEN | `actor.t[4395]`

Check whether this QueryTopic matches the question asked. For it to do so it must match not only the topic but the qType (query type)

Adv3Lite Library Reference Manual
Generated on 12/09/2014 from adv3Lite version 1.4