steel_door.c

ds2.10/lib/domains/campus/doors/steel_door.c · 786 B

From the archive ds2.10.zip

Download the archive   « Back to the archive contents

/*    /domains/Examples/etc/door.c
 *    from the Dead Souls LPC Library
 *    an example door object connecting doorroom1.c and doorroom2.c
 *    created by Descartes of Borg 950411
 */

#include <lib.h>

inherit LIB_DOOR;

static void create() {
    door::create();
    SetSide("east", ([ "id" : ({ "door","east door" }) ,
                "short" : "a steel door leading east",
                "long" : "This is an imposing, large steel door leading east into the arena.",
                "lockable" : 0 ]) );
    SetSide("west", ([ "id" : ({ "west door" , "first door" }),
                "short" : "a steel door leading west",
                "long" : "This is an imposing, large steel door leading west, out of the arena.",
                "lockable" : 0 ]) );
    SetClosed(1);
}

Site Stats

Snippets: 1791
Codebases: 571