//
#pragma strict_types
//#pragma noclone

inherit "/std/room";
//inherit "/std/door";

#include <stdproperties.h>

//int open_gate_state(object gate);
//void open_gate(object gate);
//void close_gate(object gate);

//void set_guard() { }

/*
 * Prototypes
 */

void
create_gate() { ::create_room(); }

void
create_room()
{
  add_prop(ROOM_I_INSIDE, 1);
  
  // unnessesery when calling ::create_room();
  //add_prop(ROOM_I_LIGHT, 1);
  //if (function_exists("reset_gate", this_object()) != ROOM_OBJECT

  //create_door();
  create_gate();
}



/*
void
open_gate_state(object gate)
{
  string s;
  int open = 1;

  if ((gate->query_open()) && (!open))
    set_alarm(5.0, 0.0, &close_gate(gate));

  if ((!gate->query_open()) && open)
    open_gate(gate);
    }*/

/*
void
open_gate(object gate)
{
  object s;
  //  string naz;

  s = gate->query_other_door();
  if (!s)
    gate->load_other_door();

  gate->set_open(1);
  gate->do_open_door("The gate opens slowly with a lot of noise.\n");
  s->do_open_door("The gate opens slowly with a lot of noise.\n");
  }*/

/*
void
close_gate(object gate)
{
  object s;

  s = gate->query_other_door();
  if (!s)
    gate->load_other_door();

  gate->set_open(0);
  gate->do_close_door("The gate closes slowly with a lot of noise.\n");
  s->do_close_door("The gate closes slowly with a lot of noise.\n");
}
*/
