BagAffinityInfo class | thing.t[373]

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

`aff_` | `thing.t[450]`

affinity of the bag for the object

`bag_` | `thing.t[447]`

the bag that wants to contain the object

`bulk_` | `thing.t[444]`

the object's bulk

`obj_` | `thing.t[441]`

the object the bag wants to contain

Methods

`compareAffinityTo (other)` | `thing.t[389]`

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)` | `thing.t[374]`

no description available

`removeMostRecent (vec)` | `thing.t[421]`

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 8/21/2012 from TADS version 3.1.2