Christian Georg Becker | d42fc79 | 2016-09-03 09:10:11 +0200 | [diff] [blame] | 1 | IsArmour() |
| 2 | |
| 3 | FUNKTION: |
| 4 | status IsArmour() |
| 5 | |
| 6 | DEFINIERT IN: |
| 7 | /std/armour/wear.c |
| 8 | |
| 9 | RUeCKGABEWERT: |
| 10 | 1 wenn ein Ruestung |
| 11 | 0 sonst |
| 12 | |
| 13 | BESCHREIBUNG: |
| 14 | Gibt 1 zurueck, wenn entsprechende Klasse irgendwo geerbt wurden, es |
| 15 | also eine Ruestung ist. |
| 16 | |
| 17 | BEMERKUNGEN: |
| 18 | Entsprechende Basisklasse ueberschreibt und gibt fuer IsClothing() |
| 19 | explizit 0 zurueck. |
| 20 | |
| 21 | BEISPIEL: |
| 22 | // enthaelt im Gegensatz zu P_ARMOURS auch nichtgetragenen Kram |
| 23 | // im Inventory L1 |
| 24 | object *allarmours = |
| 25 | filter_objects(all_inventory(this_player()), "IsArmour") |
| 26 | |
| 27 | SIEHE AUCH: |
| 28 | Aehnlich: living, interactive |
| 29 | Aehnlich: IsBottle, IsClothing, IsPlayerCorpse, IsRoom, IsUnit |
| 30 | Props: P_ARMOURS |
| 31 | |
| 32 | 3. Sep 2016, Gloinson |