TopicOrThingMatchTopic class | actor.t[3139]

A TopicEntry that can match a Thing or a Topic. This can be used to combine ASK/TELL-type responses and GIVE/SHOW-type responses in a single topic entry.

When this kind of topic is used as a suggested topic, note that you should name the suggestion according to the least restrictive verb. This is important because the suggestion will be active if any of the verbs would allow it; to ensure that we suggest a verb that will actually work, we should thus use the least restrictive verb. In practice, this means you should use ASK or TELL as the suggestion name, because an object merely has to be known to be used as a topic; it might be possible to ASK/TELL about an object but not GIVE/SHOW the object, because the object is known but not currently in scope.

`class TopicOrThingMatchTopic : ThingMatchTopic TopicMatchTopic`

Superclass Tree (in declaration order)

`TopicOrThingMatchTopic`
`ThingMatchTopic`
`TopicEntry`
`object`
`TopicMatchTopic`
`TopicEntry`
`object`

Subclass Tree

`TopicOrThingMatchTopic`
`AskTellGiveShowTopic`
`AskTellShowTopic`

Global Objects

(none)

Summary of Properties

``

``

Inherited from `TopicEntry` :
`altTalkCount altTopicList impliesGreeting includeInList isActive isConversational matchObj matchScore talkCount topicGroupActive topicGroupScoreAdjustment topicResponse`

Inherited from `TopicMatchTopic` :
`matchExactCase matchPattern`

``

Summary of Methods

`isMatchPossible matchTopic setTopicPronouns`

``

Inherited from `TopicEntry` :
`addAltTopic addSuggestedTopic addTopic adjustScore anyAltIsActive breakTopicTie checkIsActive deferToEntry getActor getTopicOwner handleTopic initializeTopicEntry noteAltInvocation noteInvocation`

Inherited from `TopicMatchTopic` :
`findMatchObj`

``

Properties

(none)

Methods

`isMatchPossible (actor, scopeList)`OVERRIDDEN | `actor.t[3153]`

if we're being asked to match a ResolvedTopic, use the inherited TopicMatchTopic handling; otherwise, use the inherited ThingMatchTopic handling

`matchTopic (fromActor, obj)`OVERRIDDEN | `actor.t[3140]`

no description available

`setTopicPronouns (fromActor, obj)`OVERRIDDEN | `actor.t[3160]`

if a match is possible from either subclass, allow it

TADS 3 Library Manual
Generated on 8/21/2012 from TADS version 3.1.2