MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // MorgenGrauen MUDlib |
| 2 | //, |
| 3 | // clothing_container.c -- Kleidung, in die man was reinstecken kann |
| 4 | // |
| 5 | // $Id: clothing_container.c,v 1.3 2003/08/07 07:25:43 Rikus Exp $ |
| 6 | |
| 7 | #pragma strict_types |
| 8 | #pragma save_types |
| 9 | #pragma no_clone |
| 10 | #pragma pedantic |
| 11 | #pragma range_check |
| 12 | |
| 13 | inherit "/std/thing/properties"; |
| 14 | inherit "/std/thing/commands"; |
| 15 | inherit "/std/thing/language"; |
| 16 | inherit "/std/thing/envchk"; |
| 17 | inherit "/std/container/light"; |
| 18 | inherit "/std/container/restrictions"; |
| 19 | inherit "/std/container/inventory"; |
| 20 | inherit "/std/container/items"; |
| 21 | inherit "/std/clothing/moving"; |
| 22 | inherit "/std/clothing/wear"; |
| 23 | inherit "/std/clothing/container_description"; |
| 24 | |
| 25 | //#define NEED_PROTOTYPES |
| 26 | |
| 27 | #include <container.h> |
| 28 | |
| 29 | protected void create() { |
| 30 | properties::create(); |
| 31 | commands::create(); |
| 32 | light::create(); |
| 33 | container_description::create(); |
| 34 | restrictions::create(); |
| 35 | items::create(); |
| 36 | wear::create(); |
| 37 | envchk::create(); |
| 38 | SetProp(P_CONTAINER,1); |
| 39 | SetProp(P_PREPOSITION, "in"); |
| 40 | SetProp(P_SOURCE_PREPOSITION, "aus"); |
| 41 | SetProp(P_DEST_PREPOSITION, "in"); |
| 42 | AddId("Ding"); |
| 43 | } |
| 44 | |
| 45 | protected void create_super() { |
| 46 | set_next_reset(-1); |
| 47 | } |
| 48 | |
| 49 | void reset() { |
| 50 | items::reset(); |
| 51 | } |
| 52 | |
| 53 | int IsClothing() {return 1;} |
| 54 | |