blob: b8108dfa00db919c8f4909532938fa91cf34a357 [file] [log] [blame]
Zesstra18626972017-01-31 10:38:27 +01001IsClothing()
2============
3
4FUNKTION
5--------
6::
7
8 status IsClothing()
9
10DEFINIERT IN
11------------
12::
13
14 /std/clothing.c
15 /std/clothing_container.c
16
17RUeCKGABEWERT
18-------------
19::
20
21 1 wenn ein Kleidungsstueck
22 0 sonst
23
24BESCHREIBUNG
25------------
26::
27
28 Gibt 1 zurueck, wenn entsprechende Klassen irgendwo geerbt wurden, es
29 also ein Kleidungsstueck (oder ein Kleidungsstueck mit Taschen) ist.
30
31BEISPIEL
32--------
33::
34
35 // enthaelt im Gegensatz zu P_CLOTHING auch nichtgetragenen Kram
36 // im Inventory L1
37 object *allcloth =
38 filter_objects(all_inventory(this_player()), "IsClothing")
39
40SIEHE AUCH
41----------
42::
43
44 Aehnlich: living, interactive
45 Aehnlich: IsArmour, IsBottle, IsPlayerCorpse, IsRoom, IsUnit
46 Props: P_CLOTHING
47
483. Sep 2016, Gloinson
49