ImplicitActionAnnouncementclass
Implicit action announcement. This is displayed when we perform a command implicitly, which we usually do to fulfill a precondition of an action.
In English, we usually show an implied action as the verb participle phrase (“opening the door”), prefixed with “first”, and enclosed in parentheses on a line by itself (hence, “(first opening the door)”).
class
ImplicitActionAnnouncement
:
CommandAnnouncement
Superclass Tree (in declaration order)
ImplicitActionAnnouncement
CommandAnnouncement
CommandReport
` object`
Subclass Tree
(none)
Global Objects
(none)
Summary of Properties
Inherited from CommandAnnouncement
:
messageProp_
messageText_
Inherited from CommandReport
:
action_
isFailure
isQuestion
iter_
Summary of Methods
construct
makeSilent
noteJustTrying
noteQuestion
Inherited from CommandAnnouncement
:
getMessageText
showMessage
Inherited from CommandReport
:
getAction
isActionImplicit
isActionNestedIn
isPartOf
setAction
Properties
justAsking
flag: the action was interrupted with an interactive question
justTrying
Flag: we’re just attempting the action; this is set when we determine that the implicit action has failed, in which case we want an announcement indicating that we’re merely attempting the action, not actually performing it. Presume that we’re actually going to perform the action; the action can change this if necessary.
Methods
construct (action, msg)
OVERRIDDEN
no description available
makeSilent ( )
Make this announcement silent. This eliminates any announcement for this action, but makes it otherwise behave like a normal implied action.
noteJustTrying ( )
Note that the action we’re attempting is merely an attempt that failed. This will change our report to indicate that we’re only trying the action, rather than suggesting that we actually carried it out.
noteQuestion ( )
Note that the action we’re attempting is incomplete, as it was interupted for interactive input (such as asking for a missing object).
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3