elevator_internal_door.scr

lima-1.0b5/lib/domains/std/2.4.5/obj/elevator_internal_door.scr · 698 B

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

Download the archive   « Back to the archive contents

# Do not remove the headers from this file! see /USAGE for more info.

is=object
primary_id=door
primary_adj=elevator
flag=attached

direct_open_obj:
  check
    (call container "query_door_open") : "It is already open!\n"
    (call container "query_in_motion") : "The door is stuck.\n"
  end

open:
  action $N $vopen the door.\n
  call container "open_the_door"
end

direct_close_obj:
  check
    not (call container "query_door_open") : "It is already closed!\n"

close:
  action $N $vclose the door.\n
  call container "close_the_door"
end

---
string long() {
    if (environment()->query_state("door"))
        return "The door is open.\n";
    else
        return "The door is closed.\n";
}

Site Stats

Snippets: 1791
Codebases: 571