MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // MorgenGrauen MUDlib |
| 2 | // |
| 3 | // tray.c -- container standard object |
| 4 | // |
| 5 | // $Id: tray.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 | #pragma strong_types |
| 15 | #pragma save_types |
| 16 | #pragma no_clone |
| 17 | #pragma pedantic |
| 18 | #pragma range_check |
| 19 | |
| 20 | inherit "/std/thing/properties"; |
| 21 | inherit "/std/thing/moving"; |
| 22 | inherit "/std/thing/commands"; |
| 23 | inherit "/std/thing/language"; |
| 24 | inherit "/std/container/light"; |
| 25 | inherit "/std/container/restrictions"; |
| 26 | inherit "/std/tray/description"; |
| 27 | inherit "/std/thing/envchk"; |
| 28 | |
| 29 | #include <properties.h> |
| 30 | #include <wizlevels.h> |
| 31 | #include <defines.h> |
| 32 | |
| 33 | protected void create() |
| 34 | { |
| 35 | properties::create(); |
| 36 | commands::create(); |
| 37 | light::create(); |
| 38 | description::create(); |
| 39 | restrictions::create(); |
| 40 | envchk::create(); |
| 41 | SetProp(P_TRAY,1); |
| 42 | SetProp(P_PREPOSITION, "auf"); |
| 43 | SetProp(P_SOURCE_PREPOSITION, "von"); |
| 44 | SetProp(P_DEST_PREPOSITION, "auf"); |
| 45 | } |
| 46 | |
| 47 | protected void create_super() { |
| 48 | set_next_reset(-1); |
| 49 | } |
| 50 | |
| 51 | /* |
| 52 | void init() |
| 53 | { |
| 54 | commands::init(); |
| 55 | description::init(); |
| 56 | } |
| 57 | */ |
| 58 | |
| 59 | void reset() |
| 60 | {} |