eye.c

./lib/skills/obj/eye.c · 605 B

From the archive h7v3.0a.tar.gz

Download the archive   « Back to the archive contents

/* wizard eye controller */

object eye;

void init() {
  add_action("dispel", "dispel");
  add_action("eye","eye");
}

status eye(string str) {
  if(!eye) {
    destruct(this_object());
    return 0;
  }
  eye->new_room(str);
  return 1;
}


status dispel(string str) {
  if(str != "eye") return 0;
  if(!eye) {
    destruct(this_object());
    return 0;
  }
  eye->time_out();
  return 1;
}

void set_wizard_eye(object ob) { eye = ob;   }
object query_wizard_eye()      { return eye; }

status id(string str) {
  return str == "spell"
      || str == "eye";
}

/* Native Mode Move */

#include <move.h>

Site Stats

Snippets: 1791
Codebases: 571