Distinguisherclassdisambig.t[25]

Distinguisher. This object encapsulates logic that determines whether or not we can tell two objects apart.

Each game object has a list of distinguishers. For most objects, the distinguisher list contains only BasicDistinguisher, since most game objects are unique and thus are inherently distinguishable from all other objects.

class Distinguisher :   object

Superclass Tree   (in declaration order)

Distinguisher
        object

Subclass Tree  

(none)

Global Objects  

basicDistinguisher  litUnlitDistinguisher  locationDistinguisher  nullDistinguisher  ownershipDistinguisher 

Summary of Properties  

(none)

Summary of Methods  

canDistinguish  notePrompt 

Properties  

(none)

Methods  

canDistinguish (a, b)disambig.t[27]

can we distinguish the given two objects?

notePrompt (lst)disambig.t[42]
Note that we're showing a prompt to the player asking for help in narrowing the object list, based on this distinguisher. 'lst' is the list of ResolveInfo objects which we're mentioning in the prompt.

By default, we do nothing. Some types of distinguishers might want to do something special here. For example, an ownership distinguisher might want to set pronoun antecedents based on the owners mentioned in the disambiguation prompt, so that the player's response can refer anaphorically to the nouns in the prompt.

TADS 3 Library Manual
Generated on 9/8/2006 from TADS version 3.0.11