DefaultAgendaTopicclass

actor.t[4137]

Superclass
Tree

Subclass
Tree

Global
Objects

Property
Summary

Method
Summary

Property
Details

Method
Details

A DefaultAgendaTopic can be used to give the actor the opportunity to seize the conversational initiative when the player enters a conversational command for which there’s no explicit match. Instead of giving a bland default response the actor can instead respond with an item from its own agenda, e.g. “Never mind that, what I really want to know is…”.

Items can be added to the agenda of a DefaultAgendaTopic by calling its addToAgenda method. To obtain a reference to a DefaultAgendaTopic use the defaultAgendaTopic property of the Actor or ActorState in which it is located (note, therefore, that there should only be at most one of these per Actor or Actor State).

Note that you should define the topicResponse or eventList property of a DefaultAgendaTopic in case none of the agenda items in its agenda list turn out to be executable.

class DefaultAgendaTopic :   AgendaManager DefaultAnyTopic

Superclass Tree   (in declaration order)

DefaultAgendaTopic
AgendaManager
`                 object [DefaultAnyTopic](../object/DefaultAnyTopic.html) [DefaultTopic](../object/DefaultTopic.html) [ActorTopicEntry](../object/ActorTopicEntry.html) [ReplaceRedirector](../object/ReplaceRedirector.html) [Redirector](../object/Redirector.html)                                                 object [TopicEntry](../object/TopicEntry.html)                                         object`

Subclass Tree  

(none)

Global Objects  

(none)

Summary of Properties  

active matchScore

Inherited from AgendaManager :
agendaList

Inherited from DefaultAnyTopic :
includeInList matchGreetings matchObj

Inherited from DefaultTopic :
exceptions

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

Inherited from TopicEntry :
isActive matchExactCase matchPattern scoreBoost topicMatched

Summary of Methods  

handleTopic

Inherited from AgendaManager :
addToAgenda executeAgenda removeFromAgenda

Inherited from DefaultTopic :
avoidMatching matchTopic

Inherited from ActorTopicEntry :
activate addToConvKeyTable buildName curiositySatisfied deactivate getKeyTopics initializeTopicEntry isReachable nodeActive showKeyTopics timesToSuggest

Inherited from ReplaceRedirector :
redirect

Inherited from Redirector :
doInstead doNested doOtherAction

Inherited from TopicEntry :
addTopic scoreBooster topicResponse

Properties  

activeOVERRIDDEN

actor.t[4153]

This kind of Default Topic is active only when it has any agenda items to process.

matchScoreOVERRIDDEN

actor.t[4160]

When this DefaultTopic is active we want it to take priority over over DefaultTopics.

Methods  

handleTopic ( )OVERRIDDEN

actor.t[4139]

no description available

Adv3Lite Library Reference Manual
Generated on 15/03/2023 from adv3Lite version 1.6.1