tmp_elevator_button.c

lima-1.0b5/lib/domains/std/2.4.5/obj/tmp_elevator_button.c · 474 B

From the archive lima-1.0b5+driver.tar.gz

Download the archive   « Back to the archive contents

#pragma no_warnings
inherit "/std/object";

mixed _dest;
void setup(string d);
mixed do_press();
mixed direct_press_obj();
string long() {
  return "The button is marked '" + _dest + "'\n";
}
void setup(string d) {
function f;
set_flag(0 | ATTACHED);
set_adj("elevator");
set_id("button");
{
_dest = d;
add_adj(d);
;
}
;
}


mixed do_press() {
{
call_other(environment(this_object()), "handle_press",_dest);
return 1;;
}
;
}


mixed direct_press_obj() {
{
return 1;;
}
;
}

Site Stats

Snippets: 1791
Codebases: 571