YesNoTopic class | actor.t[3513]

A YES/NO topic. These handle YES and/or NO, which are normally used as responses to questions posed by the NPC. YesNoTopic is the base class, and can be used to create a single response for both YES and NO; YesTopic provides a response just for YES; and NoTopic provides a response just for NO. The only thing an instance of these classes should normally need to specify is the response text (or a list of response strings, by multiply inheriting from an EventList subclass as usual).

`class YesNoTopic : MiscTopic`

Superclass Tree (in declaration order)

`YesNoTopic`
`MiscTopic`
`TopicEntry`
`object`

Subclass Tree

`YesNoTopic`
`NoTopic`
`YesTopic`

Global Objects

(none)

Summary of Properties

`includeInList matchList`

``

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

Summary of Methods

``

Inherited from `MiscTopic` :
`isMatchPossible matchTopic`

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

Properties

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

no description available

`matchList` | `actor.t[3521]`

our list of matching topic objects - we'll only ever be asked to match 'yesTopicObj' (for YES inputs) or 'noTopicObj' (for NO inputs)

Methods

(none)

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