QueryTopicclassactor.t[4545]

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  

includeInListOVERRIDDENactor.t[4646]

A QueryTopic belongs in the queryTopics list of its TopicDatabase

qtypeactor.t[4578]
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 ( )OVERRIDDENactor.t[4622]

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 ( )OVERRIDDENactor.t[4581]
no description available

matchTopic (top)OVERRIDDENactor.t[4551]
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 01/03/2024 from adv3Lite version 1.6.2