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