CommandProdWithActorclass
A command with an actor specification. This should be instantiated with grammar rules in a language-specific module.
Instantiating grammar rules should set property actor_ to the actor match tree, and cmd_ to the underlying ‘commandPhrase’ production match tree.
class
CommandProdWithActor
:
CommandProd
Superclass Tree (in declaration order)
CommandProdWithActor
CommandProd
BasicProd
` object`
Subclass Tree
CommandProdWithActor
FirstCommandProdWithActor
actorBadCommandPhrase(main)
firstCommandPhrase(askTellActorTo)
firstCommandPhrase(withActor)
Global Objects
(none)
Summary of Properties
Inherited from CommandProd
:
getActorPhrase
Inherited from BasicProd
:
firstTokenIndex
isSpecialResponseMatch
lastTokenIndex
Summary of Methods
execActorPhrase
getActorPhrase
getResolver
getTargetActor
hasTargetActor
resolveNouns
Inherited from BasicProd
:
canResolveTo
getOrigText
getOrigTokenList
setOrigTokenList
Properties
resolvedActor_
my resolved actor object
resolver_
my actor resolver object
Methods
execActorPhrase (issuingActor)
OVERRIDDEN
Execute the target actor phrase. This is a notification, for use by subclasses; we don’t have anything we need to do in this base class implementation.
getActorPhrase ( )
return my resolved actor object
getResolver (issuingActor)
get or create my actor resolver
getTargetActor ( )
this command explicitly specifies an actor
hasTargetActor ( )
OVERRIDDEN
no description available
resolveNouns (issuingActor, targetActor, results)
Resolve nouns. We’ll resolve only the nouns in the target actor phrase; we do not resolve nouns in the command phrase, because we must re-parse the command phrase after we’ve finished resolving the actor phrase, and thus we can’t resolve nouns in the command phrase until after the re-parse is completed.
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3