[Package Index | Mudlib Index | Effect Index]
Written by Pinkfish
.
varargs int add_command(string cmd, object ob, mixed format, function funct)The id is a useful thingy so that things can remember which pattern was parsed.
void add_failed_mess(object dir, string mess, mixed * in_dir)
int add_succeeded(mixed ob)This is called by the object the command is being passed on to find whether or not it succeeded on the objects it was passed... and which ones. This can be passed an object.. or an array of objects. Share and enjoy.
int add_succeeded_mess(object dir, mixed incoming_mess, object * in_dir)
int check_if_allowed(object ob)
int check_if_creator(object ob)
int check_living(object ob)
varargs string create_message(string * bits, int * matches, mixed * pattern, object * dir, int flag)
string get_fail_messages(string verb, object * fail_obs)
class obj_match my_find_match(string pattern, object * where, int type)
nomask int new_parser(string str)This method does all the real work for add_command parsing.
int * pattern_match(string * bits, mixed * pattern)
void print_special_messages(string verb)
int query_failed_message_exists(object dir)This method checks to see if the given object has already added a failed message yet or not. This is checking for a direct object, not an indirect object.
mapping query_p_commands()This method returns the current internal set of commands.
([ "command_name" :
({ ({ pattern_weight, pattern_str, nn, object, function }) })
])
mapping query_p_objects()This method returns the current mapping between objects and commands.
This mapping is used when the object leaves the environment to make
the command updating more efficent.
mixed * query_parse_command(string name)This method returns the information associated with the specific command. This should only be used for debug.
object * query_parse_command_objects(string name)This method returns the objects associated with the parse command.
object * query_succ_mess_dir()This method returns the objects which have success messages already attached for. This allows you to determine which objects already hace a success message available. This array is added to by both the add_succeeded_mess and add_failed_mess methods, it disable the autogeneration of these messages.
object * query_succ_mess_indir()This method returns all the indirect objects used in the success messages.
string * query_word_list(string list)
int remove_object(mixed ob, int was_env)
void setup_failed_mess(class obj_match failed_match)
int syntax_messages(string str)
class fail_mess_data { object * direct; object * indirect; int weight; }