/* /verbs/rooms/enter.c * from the Dead Souls Mud Library * created by Descartes of Borg 951104 * Version: @(#) enter.c 1.2@(#) * Last modified: 96/10/15 */ #include #include "include/enter.h" inherit LIB_VERB; static void create(){ verb::create(); SetVerb("enter"); SetRules("into OBJ", "OBJ"); SetErrorMessage("Enter what?"); SetHelp("Syntax: enter \n" " enter into \n\n" "Moves you into the place you specify. Whereas the \"go\" " "command is designed for motion towards something, the " "\"enter\" command is designed for motion into something.\n" "See also: go"); } mixed can_enter_obj(){ if( this_player()->GetParalyzed() ){ return "You cannot do anything."; } if(!stringp(hobbled(this_player()))) return "Your injuries prevent easy movement. Perhaps you should try crawling."; return 1; } mixed can_enter_into_obj(){ return can_enter_obj(); } mixed do_enter_obj(object targ, string what){ return targ->eventEnter(this_player(), remove_article(lower_case(what))); } mixed do_enter_into_obj(object targ, string what) { do_enter_obj(targ, what); }