command_base.c

skylib_fluffos_v3/mudlib/secure/std/command_base.c · 631 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

/**
 * This is basic inherit module for inheriting into commands.
 * Please inherit this into all command objects.
 * <p>
 * It sets up all the functions needed to do useful stuff with a 
 * command object.
 * @author Pinkfish
 */

void create() {
    seteuid(getuid(this_object()));
} /* create() */

/** @ignore yes */
nomask void dwep() {
  object my_ob = TO;

  if (my_ob)
    destruct(my_ob);
} /* dwep() */

/** @ignore yes */
void dest_me() {
    dwep();
} /* dest_me() */

/** @ignore yes */
int clean_up() {
    dest_me();
    return 1;
} /* clean_up() */

/** @ignore yes */
void reset() {
    dest_me();
} /* reset() */

Site Stats

Snippets: 1791
Codebases: 571