|
|
|||
[Package Index | Mudlib Index | Effect Index]File /global/new_parse.cThis file contains all the code to support and run the text parsing system used by discworld. This is called 'add_command', please see help on add_command for a more detailed listing.Written by Pinkfish InheritsThis class inherits the following classes /global/command.cIncludesThis class includes the following files /include/obj_parser.h, /include/function.h, /include/command.h, /include/soul.h, /include/user_parser.h and /include/creator.hClass IndexMethod index
Public FunctionsThese are functions that everyone can access..
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" :
|
||||
|
Brought to you by CMOT Dibbler's Sensational Sausages; buy one while they're hot. |