ConvType class | actor.t[1950]

A conversational action type descriptor. This descriptor is used in handleConversation() in Actor and ActorState to describe the type of conversational action we're performing. The type descriptor object encapsulates a set of information that tells us how to handle the action.

`class ConvType : object`

Superclass Tree (in declaration order)

`ConvType`
`object`

Subclass Tree

(none)

Global Objects

`askAboutConvType askForConvType byeConvType commandConvType consultConvType giveConvType helloConvType initiateConvType noConvType showConvType tellAboutConvType yesConvType`

Summary of Properties

`defaultResponseProp topicListProp unknownMsg`

Summary of Methods

`afterResponse defaultResponse`

Properties

`defaultResponseProp` | `actor.t[1969]`

the default response property for this action

`topicListProp` | `actor.t[1966]`

The TopicDatabase topic-list property. This is the property of the TopicDatabase object that we evaluate to get this list of topic entries to search for a match to the topic.

`unknownMsg` | `actor.t[1959]`

The unknown interlocutor message property. This is used when we try this conversational action without knowing whom we're talking to. For example, if we just say HELLO, and there's no one around to talk to, we'll use this as the default response. This can be a library message property, or simply a single-quoted string to display.

Methods

`afterResponse (actor, otherActor)` | `actor.t[1984]`

Perform any special follow-up action for this type of conversational action.

`defaultResponse (db, otherActor, topic)` | `actor.t[1978]`

Call the default response property on the given topic database. This invokes the property given by defaultResponseProp(). We have both the property and the method to call the property because this allows us to test for the existence of the property and to call it with the appropriate argument list.

TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3