ItemListerclasslister.t[115], english.t[2978]

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[2978]:
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  showMovedToInfo  showSubListing  showWornInfo 

Summary of Methods  

listName  show  showList 

Inherited from Lister :
buildList  listed  listOrder  showListEmpty  showListPrefix  showListSuffix 

Properties  

contentsListedProplister.t[140]

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

listRecursivelylister.t[146]
Flag, so we want to list contents of contents when using this lister; by default we do.

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

showMovedToInfoenglish.t[3082]
Flag: do we want to show {by the whatever) if after items that have notionally being moved to the vicinity of whatever.

showSubListingenglish.t[3089]
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.

showWornInfoenglish.t[3076]
Flag: do we want to show (being 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[2995]

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)OVERRIDDENlister.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)OVERRIDDENenglish.t[2986]
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 03/07/2024 from adv3Lite version 2.1