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
aff_
bag_
bulk_
obj_
Summary of Methods
compareAffinityTo
construct
removeMostRecent
Properties
affinity of the bag for the object
the bag that wants to contain the object
the object the bag wants to contain
Methods
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.
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