ItemListerclass | lister.t[115], english.t[2937]

An Item Lister is a lister used for listing physical items. Notice that most of the specifics of the listers defined below are language-specific, and so are defined in the language-specific part of the library (e.g. in english.t).

Modified in english.t[2937]:
Modifications to the ItemLister (the base class for listers that list physical objects) for the English-language part of the library.

`class ItemLister : Lister`

Superclass Tree (in declaration order)

`ItemLister`
`Lister`
`object`

Subclass Tree

`ItemLister`
`CustomRoomLister`

Global Objects

`descContentsLister inventoryLister inventoryTallLister lookContentsLister lookInLister lookLister openingContentsLister remoteRoomContentsLister remoteSubContentsLister simpleAttachmentLister subLister wornLister`

Summary of Properties

`contentsListedProp listRecursively showAdditionalInfo showSubListing showWornInfo`

``

Summary of Methods

`listName show showList`

Inherited from `Lister` :
`buildList listed listOrder showListEmpty showListPrefix showListSuffix`

Properties

`contentsListedProp` | `lister.t[140]`

The property on a Thing-derived container to test whether its contents should be listed when listing with this lister

`listRecursively` | `lister.t[146]`

Flag, so we want to list contents of contents when using this lister; by default we do.

`showAdditionalInfo` | `english.t[3015]`

Flag: do we want to show additional information such as '(providing light)' after the names of items listed in inventory. By default we do.

`showSubListing` | `english.t[3030]`

Flag: do we want to show the contents of items listed in inventory (in parentheses after the name, e.g. a bag (in which is a blue ball)). By default we do.

`showWornInfo` | `english.t[3023]`

Flag: do we want to show (bveing worn) after items in an inventory list that the player character is wearing. By default we do if we're showing additional info.

Methods

`listName (o)` | `english.t[2954]`

The listName is the aName of o plus any status-specific information we might want to appear in the listing, such as '(providing light)'

`show (lst, parent, paraBrk, =, true)`OVERRIDDEN | `lister.t[122]`

Show a list of objects. 'lst' is the list of objects to show; 'parent' parameter is the object whose contents are being listed, 'paraBrk' defines whether or not we want a paragraph break after the list.

`showList (lst, pl, parent)`OVERRIDDEN | `english.t[2945]`

For an item lister we use the listName method of the lister rather than the aName property of the object to provide a name for the object; this allows the lister to add status-specific information like '(providing light)' or '(being worn)' to the name as it appears in the list.

Adv3Lite Library Reference Manual
Generated on 01/03/2024 from adv3Lite version 1.6.2