living.c~

MudOSa4DGD/mudlib/dgd/lib/sys/efun/living.c~ · 667 B

From the archive MudOSa4DGD-30.06.98.tar.gz

Download the archive   « Back to the archive contents

/*
 * living.c
 *
 * Functions to support living objects
 *
 * (C) Frank Schmidt, Jesus@NorseMUD
 *
 */


private static string __living_name;


nomask string __query_living_name() {
  return __living_name;
}


/* set name of living */
static void set_living_name(string name) {
  GLOBAL->set_living_name(name, this_object(), __living_name);
  __living_name = name;
}


/* is object living? */
static int living(object ob) {
  return (ob->__query_living_name()) != 0;
}


/* find living by name */
static string find_living(string name) {
  return GLOBAL->find_living(name);
}


/* return array of livings? */
static object *livings() {
  return GLOBAL->livings();
}

Site Stats

Snippets: 1791
Codebases: 571