Re: Doors

From: Daniel Koepke (dkoepke@california.com)
Date: 02/25/97


On Tue, 25 Feb 1997, Ron Hensley wrote:

> Anyone played with doors enough to know how to create and destroy them 
> safely and accurately?

In code? Yes...

  if (EXIT(ch, NORTH)) // already one to the north
    return 0;
  CREATE(EXIT(ch, NORTH), struct room_direction_data, 1);
  // now setup room information

As for deleting it after a certain time period? If you have event
queues or whatnot, that'll be of some service, and just do:

  free(world[room].dir_option[NORTH]);



--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
|    Or send 'info circle' to majordomo@cspo.queensu.ca     |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST