如何为一组事物分配一种类型

How to assign a kind to a group of things

我是 Inform 7 的新手。我一直在研究 'Bogart' 示例,它提供了一些服装规则。

我有类似的东西:

The player wears a jacket, a jumper, a shirt, some underpants, a pair of men's blue jeans, a pair of socks.

现在我想给衣服加一个属性,例如:

An item of clothing is a kind of thing.

An item of clothing can be removable. An item of clothing is usually removable.

在这一点上,我似乎必须通过并明确定义玩家佩戴的每件物品为 item of clothing,例如:

A pair of socks is an item of clothing.  
A jumper is an item of clothing.  
A jacket is an item of clothing.  

...玩家所穿的一切等等。

我想找到一种方法来告诉 Inform everything worn by the player is an item of clothing 甚至 everything wearable is an item of clothing。到目前为止,我还没有找到任何可以编译的形式,这可能吗?

这不可能。你能做的最好的是:

The jacket, the jumper, the shirt, the underpants, the pair of men's blue jeans, 
and the pair of socks are item of clothing.