DefaultObjectAnnouncementclassreport.t[397]

Default object announcement. We display this announcement whenever the player leaves out a required object from a command, but the parser is able to infer which object they must have meant. The parser infers that an object was intended when a verb requires an object that the player didn't specify, and there's only one logical choice for the missing object. We announce our assumption to put it out in the open, to ensure that the player is immediately alerted if they had something else in mind.

In English, this type of announcement conventionally consists of simply the name of the assumed object, in parenthesis and on a line by itself. In cases where the object role involves a prepositional phrase in the verb structure, we generally show the preposition before the object name. This format usually reads intuitively, by combining with the text just above of the player's own command:


>open
(the door>
You try opening the door, but it seems to be locked. *.
>unlock the door (with the key)

class DefaultObjectAnnouncement :   CommandAnnouncement

Superclass Tree   (in declaration order)

DefaultObjectAnnouncement
        CommandAnnouncement
                CommandReport
                        object

Subclass Tree  

(none)

Global Objects  

(none)

Summary of Properties  

allResolved_  obj_  whichObj_ 

Inherited from CommandAnnouncement :
messageProp_  messageText_ 

Inherited from CommandReport :
action_  isFailure  isQuestion  iter_ 

Summary of Methods  

construct  getMessageText 

Inherited from CommandAnnouncement :
showMessage 

Inherited from CommandReport :
getAction  isActionImplicit  isActionNestedIn  isPartOf  setAction 

Properties  

allResolved_report.t[426]

no description available

obj_report.t[422]
our defaulted object

whichObj_report.t[425]
our message parameters

Methods  

construct (obj, whichObj, action, allResolved)OVERRIDDENreport.t[398]

no description available

getMessageText ( )OVERRIDDENreport.t[415]
get our message text

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