Table of Contents

WornApparel

FIXME This is all changing, and this info isn't correct. It will be updated once the code is done.

This class, derived from Wardrobe, is meant to track worn Apparel. It overrides preAdd() so that only objects of type GenericApparel (or subclasses thereof) may be added to the Inventory. The Wardrobe parent class also overrides sort() so that the contents are sorted in order of ClothingSlot value rather than alphabetically.

static WornApparel.defineCoveredBy( slot, resolverFunction )

This function is used internally to define what slots cover other slots. The only time you'll need to use it is if you are defining new ClothingSlots. FIXME It is currently in the WornApparel constructor, which is stupid. We should be building the function table in the ClothingSlots source file.

.itemsConflictWith( item )

.atSlot( slot )

.hiddenBy( item )

.hiding( item )

.outlinedBy( item )

.showingOutlineOf( item )

FIXME in source: Should thin items beneath other thin items not show an outline? Ie, the whole point of a thong being to not show an outline? FIXME

.getHidden( filterClass=undefined, filterFunction=undefined )

This functions like GeneralInventory.get(), except it returns only the apparel that are concealed beneath other apparel.

.getVisible( filterClass=undefined, filterFunction=undefined )

This functions like GeneralInventory.get(), except it returns only the apparel that are visible.

.getOutlined( filterClass=undefined, filterFunction=undefined )

This functions like GeneralInventory.get(), except it returns only the apparel that are outlined through more outer layers that are thin. FIXME Check to make sure this is working properly. ie a bra showing an outline through a tight shirt should still be concealed by a coat worn overtop.

.toString( showAll=undefined )

Overridden. FIXME This function currently doesn't to anything beyond the implementation in GeneralInventory. It ought to be checking the viewpoint character and basing its results on that. The viewpoint character, when looking at their own WornApparel, should get a list of everything, even the concealed layers. But when looking at someone else's WornApparel, should only get a list of that which is visible and showing an outline of. It should also take an arg to force one behavior or the other.

.theString( showAll=undefined )

Like toString(), but using .theName instead. FIXME This needs to be implemented the same as toString() with regard to showAll.