blob: 9b09c9cefae7d404bcf81ffffb410ed53f67ffaf [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// 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
MG Mud User88f12472016-06-24 23:31:02 +020018#pragma range_check
19
20inherit "/std/thing/properties";
21inherit "/std/thing/moving";
22inherit "/std/thing/commands";
23inherit "/std/thing/language";
24inherit "/std/container/description";
25inherit "/std/container/light";
26inherit "/std/container/restrictions";
27inherit "/std/container/inventory";
28inherit "/std/container/items";
Zesstra44030452018-11-12 22:34:02 +010029inherit "/std/container/vitems";
MG Mud User88f12472016-06-24 23:31:02 +020030inherit "/std/thing/envchk";
31
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 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
51protected void create_super() {
52 set_next_reset(-1);
53}
54
MG Mud User88f12472016-06-24 23:31:02 +020055void reset()
56{
57 items::reset();
Zesstra44030452018-11-12 22:34:02 +010058 vitems::reset();
Zesstraf17d3a02018-11-12 22:29:00 +010059 envchk::reset();
MG Mud User88f12472016-06-24 23:31:02 +020060}
61