ResolveInfoclassparser.t[345]

The resolveNouns() method returns a list of ResolveInfo objects describing the objects matched to the noun phrase.

class ResolveInfo :   object

Superclass Tree   (in declaration order)

ResolveInfo
        object

Subclass Tree  

(none)

Global Objects  

dummyTentativeInfo 

Summary of Properties  

flags_  multiAnnounce  np_  obj_  possRank_  pronounType_  quant_ 

Summary of Methods  

construct  isDistEquivInList  isEquivalentInList 

Properties  

flags_parser.t[393]

flags describing how we matched the object

multiAnnounceparser.t[440]
The pre-calculated multi-object announcement text for this object. When we iterate over the object list in a command with multiple direct or indirect objects (TAKE THE BOOK, BELL, AND CANDLE), we calculate the little announcement messages ("book:") for the objects BEFORE we execute the actual commands. We then use the pre-calculated announcements during our iteration. This ensures consistency in the basis for choosing the names, which is important in cases where the names include state-dependent information for the purposes of distinguishing one object from another. The relevant state can change over the course of executing the command on the objects in the iteration, so if we calculated the names on the fly we could end up with inconsistent naming. The user thinks of the objects in terms of their state at the start of the command, so the pre-calculation approach is not only more internally consistent, but is also more consistent with the user's perspective.

np_parser.t[420]
the noun phrase we parsed to come up with this object

obj_parser.t[390]
the object matched

possRank_parser.t[414]
The possessive ranking, if applicable. If this object is qualified by a possessive phrase ("my books"), we'll set this to a value indicating how strongly the possession applies to our object: 2 indicates that the object is explicitly owned by the object indicated in the possessive phrase, 1 indicates that it's directly held by the named possessor but not explicitly owned, and 0 indicates all else. In cases where there's no posessive qualifier, this will simply be zero.

pronounType_parser.t[417]
the pronoun type we matched, if any (as a PronounXxx enum)

quant_parser.t[402]
By default, each ResolveInfo counts as one object, for the purposes of a quantity specifier (as in "five coins" or "both hats"). However, in some cases, a single resolved object might represent a collection of discrete objects and thus count as more than one for the purposes of the quantifier.

Methods  

construct (obj, flags, np, =, nil)parser.t[346]

no description available

isDistEquivInList (lst, dist)parser.t[378]
Look for a ResolveInfo item in a list of ResolveInfo items that is equivalent to us according to a particular Distinguisher.

isEquivalentInList (lst)parser.t[363]
Look for a ResolveInfo item in a list of ResolveInfo items that is equivalent to us. Returns true if we find such an item, nil if not.

Another ResolveInfo is equivalent to us if it refers to the same underlying game object that we do, or if it refers to a game object that is indistinguishable from our underlying game object.

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