blob: 2ee851117432ac54550802481fe49ca71ce2f264 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// 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
20inherit "/std/thing/properties";
21inherit "/std/thing/moving";
22inherit "/std/thing/commands";
23inherit "/std/thing/language";
24inherit "/std/container/light";
25inherit "/std/container/restrictions";
Zesstra44030452018-11-12 22:34:02 +010026inherit "/std/container/vitems";
27inherit "/std/container/items";
MG Mud User88f12472016-06-24 23:31:02 +020028inherit "/std/tray/description";
29inherit "/std/thing/envchk";
Zesstra56c03922018-12-20 20:44:13 +010030inherit "/std/container/items";
MG Mud User88f12472016-06-24 23:31:02 +020031
32#include <properties.h>
33#include <wizlevels.h>
34#include <defines.h>
35
36protected void create()
37{
38 properties::create();
39 commands::create();
40 light::create();
41 description::create();
42 restrictions::create();
43 envchk::create();
44 SetProp(P_TRAY,1);
45 SetProp(P_PREPOSITION, "auf");
46 SetProp(P_SOURCE_PREPOSITION, "von");
47 SetProp(P_DEST_PREPOSITION, "auf");
48}
49
50protected void create_super() {
51 set_next_reset(-1);
52}
53
MG Mud User88f12472016-06-24 23:31:02 +020054void reset()
Zesstra56dfc092018-11-13 21:12:29 +010055{
56 items::reset();
Zesstra44030452018-11-12 22:34:02 +010057 vitems::reset();
Zesstraf17d3a02018-11-12 22:29:00 +010058 envchk::reset();
Zesstra56dfc092018-11-13 21:12:29 +010059}