blob: 3f5aebbc0f0c15641ce2711433cd700049724d54 [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";
30
31#include <properties.h>
32#include <wizlevels.h>
33#include <defines.h>
34
35protected void create()
36{
37 properties::create();
38 commands::create();
39 light::create();
40 description::create();
41 restrictions::create();
42 envchk::create();
43 SetProp(P_TRAY,1);
44 SetProp(P_PREPOSITION, "auf");
45 SetProp(P_SOURCE_PREPOSITION, "von");
46 SetProp(P_DEST_PREPOSITION, "auf");
47}
48
49protected void create_super() {
50 set_next_reset(-1);
51}
52
MG Mud User88f12472016-06-24 23:31:02 +020053void reset()
Zesstra56dfc092018-11-13 21:12:29 +010054{
55 items::reset();
Zesstra44030452018-11-12 22:34:02 +010056 vitems::reset();
Zesstraf17d3a02018-11-12 22:29:00 +010057 envchk::reset();
Zesstra56dfc092018-11-13 21:12:29 +010058}