blob: a77c7fa6d86bb6245187c70ca47ec4da9d167429 [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
18#pragma pedantic
19#pragma range_check
20
21inherit "/std/thing/properties";
22inherit "/std/thing/moving";
23inherit "/std/thing/commands";
24inherit "/std/thing/language";
25inherit "/std/container/description";
26inherit "/std/container/light";
27inherit "/std/container/restrictions";
28inherit "/std/container/inventory";
29inherit "/std/container/items";
30inherit "/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
55/*
56void init()
57{
58 commands::init();
59 description::init();
60}
61*/
62
63void reset()
64{
65 items::reset();
66}
67