MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // MorgenGrauen MUDlib |
| 2 | // |
| 3 | // container.c -- container standard object |
| 4 | // |
| 5 | // $Id: container.c 7804 2011-07-10 20:37:52Z Zesstra $ |
| 6 | |
| 7 | // The most general object class. It defines the really basic functions. |
| 8 | // |
| 9 | // This object should understand the properties short, long, info, read_msg, |
| 10 | // value, weight. |
| 11 | // |
| 12 | // weight is given in grams, 1 kilogram (kg) = 1000 grams (g) = 1 old weight |
| 13 | // unit |
| 14 | |
| 15 | #pragma strict_types |
| 16 | #pragma save_types |
| 17 | #pragma no_clone |
| 18 | #pragma pedantic |
| 19 | #pragma range_check |
| 20 | |
| 21 | inherit "/std/thing/properties"; |
| 22 | inherit "/std/thing/moving"; |
| 23 | inherit "/std/thing/commands"; |
| 24 | inherit "/std/thing/language"; |
| 25 | inherit "/std/container/description"; |
| 26 | inherit "/std/container/light"; |
| 27 | inherit "/std/container/restrictions"; |
| 28 | inherit "/std/container/inventory"; |
| 29 | inherit "/std/container/items"; |
| 30 | inherit "/std/thing/envchk"; |
| 31 | |
| 32 | #include <properties.h> |
| 33 | #include <wizlevels.h> |
| 34 | #include <defines.h> |
| 35 | |
| 36 | protected void create() |
| 37 | { |
| 38 | properties::create(); |
| 39 | commands::create(); |
| 40 | light::create(); |
| 41 | description::create(); |
| 42 | restrictions::create(); |
| 43 | items::create(); |
| 44 | envchk::create(); |
| 45 | SetProp(P_CONTAINER,1); |
| 46 | SetProp(P_PREPOSITION, "in"); |
| 47 | SetProp(P_SOURCE_PREPOSITION, "aus"); |
| 48 | SetProp(P_DEST_PREPOSITION, "in"); |
| 49 | } |
| 50 | |
| 51 | protected void create_super() { |
| 52 | set_next_reset(-1); |
| 53 | } |
| 54 | |
| 55 | /* |
| 56 | void init() |
| 57 | { |
| 58 | commands::init(); |
| 59 | description::init(); |
| 60 | } |
| 61 | */ |
| 62 | |
| 63 | void reset() |
| 64 | { |
| 65 | items::reset(); |
| 66 | } |
| 67 | |