BagAffinityInfoclass
Bag Affinity Info - this class keeps track of the affinity of a bag of holding for an object it might contain. We use this class in building bag affinity lists.
class
BagAffinityInfo
: object
Superclass Tree (in declaration order)
BagAffinityInfo
` object`
Subclass Tree
(none)
Global Objects
(none)
Summary of Properties
Summary of Methods
compareAffinityTo
construct
removeMostRecent
Properties
aff_
affinity of the bag for the object
bag_
the bag that wants to contain the object
bulk_
the object’s bulk
obj_
the object the bag wants to contain
Methods
compareAffinityTo (other)
Compare this item to another item, for affinity ranking purposes. Returns positive if I should rank higher than the other item, zero if we have equal ranking, negative if I rank lower than the other item.
construct (obj, bulk, aff, bag)
no description available
removeMostRecent (vec)
given a vector of affinities, remove the most recent item (as indicated by holdingIndex) and return the BagAffinityInfo object
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3