swim.c

lima-1.0b5/lib/cmds/verbs/swim.c · 727 B

From the archive lima-1.0b5+driver.tar.gz

Download the archive   « Back to the archive contents

/* Do not remove the headers from this file! see /USAGE for more info. */

/*
** get.c
**
*/

#include <mudlib.h>
#include <move.h>
#include <setbit.h>

inherit VERB_OB;

void do_swim()
{
  mixed s = environment(this_body())->swim();

  if(stringp(s))
    {
      write(s);
      return;
    }
  else if(!s)
    {
      write("I don't understand what you want to swim in.\n");
      return;
    }
}



void do_swim_in_obj(object ob, string str) {
  mixed s;
    s = ob->swim(str);
    if(stringp(s))
      {
	write(s);
	return;
      }
    if(!s)
      {
	write("You can't swim in that!\n");
      }
}

int direct_swim_in_obj(object ob)
{
  return 1;
}



void create()
{
   add_rules( ({ "", "in OBJ", }),({ "dive" }) );

}


Site Stats

Snippets: 1791
Codebases: 571