TopicActionBaseclass
Base class for actions that include a “topic” phrase. This is a mix-in class that can be used in different types of topic actions. In all cases, the topic phrase must be assigned to the ‘topicMatch’ property in grammar rules based on this class.
class
TopicActionBase
: object
Superclass Tree (in declaration order)
TopicActionBase
` object`
Subclass Tree
TopicActionBase
TopicAction
TopicTAction
AskVagueAction
predicate(AskVague)
predicate(TellVague)
ConsultAboutAction
predicate(ConsultAbout)
predicate(ConsultWhatAbout)
ConvTopicTAction
AskAboutAction
predicate(AskAbout)
predicate(AskAboutImplicit)
predicate(AskAboutWhat)
AskForAction
predicate(AskFor)
predicate(AskWhomFor)
TellAboutAction
predicate(TellAbout)
predicate(TellAboutImplicit)
predicate(TellAboutWhat)
TellVagueAction
Global Objects
(none)
Summary of Properties
topicList_
topicQualResolver_
topicResolver_
Summary of Methods
createTopicResolver
getMessageParam
getTopic
getTopicQualifierResolver
getTopicResolver
reparseMatchAsTopic
resolveTopic
setResolvedTopic
setTopicMatch
Properties
topicList_
the resolved topic object list
topicQualResolver_
the topic qualifier resolver
topicResolver_
my cached topic resolver
Methods
createTopicResolver (issuingActor, targetActor)
Create the topic resolver.
getMessageParam (objName)
Get a message parameter by name. We’ll return the topic for the keyword ‘topic’, and inherit the default handling for anything else.
getTopic ( )
get the current topic
getTopicQualifierResolver (issuingActor, targetActor, reset)
Get the resolver for qualifiers we find in the topic phrase (qualifiers that might need resolution include things like possessive adjectives and locational phrases).
getTopicResolver (issuingActor, targetActor, reset)
get the topic resolver
reparseMatchAsTopic (topic, issuingActor, targetActor)
Re-parse a match tree as a topic phrase. Returns a TopicProd match tree, if possible.
resolveTopic (issuingActor, targetActor, results)
Resolve the topic phrase. This resolves the match tree in out ‘topicMatch’ property, and stores the result in topicList_. This is for use in resolveNouns().
setResolvedTopic (topic)
Set the resolved topic to the given object list. This is for use in setResolvedObjects().
setTopicMatch (topic)
Set the topic match tree. This is for use in setObjectMatches().
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3