blob: 51319c6d4f0e7a967528695ae23fbda4bb725c03 [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";
26inherit "/std/tray/description";
27inherit "/std/thing/envchk";
Zesstra56c03922018-12-20 20:44:13 +010028inherit "/std/container/items";
MG Mud User88f12472016-06-24 23:31:02 +020029
30#include <properties.h>
31#include <wizlevels.h>
32#include <defines.h>
33
34protected void create()
35{
36 properties::create();
37 commands::create();
38 light::create();
39 description::create();
40 restrictions::create();
41 envchk::create();
42 SetProp(P_TRAY,1);
43 SetProp(P_PREPOSITION, "auf");
44 SetProp(P_SOURCE_PREPOSITION, "von");
45 SetProp(P_DEST_PREPOSITION, "auf");
46}
47
48protected void create_super() {
49 set_next_reset(-1);
50}
51
MG Mud User88f12472016-06-24 23:31:02 +020052void reset()
Zesstra56dfc092018-11-13 21:12:29 +010053{
54 items::reset();
Zesstraf17d3a02018-11-12 22:29:00 +010055 envchk::reset();
Zesstra56dfc092018-11-13 21:12:29 +010056}