[Package Index | Mudlib Index | Effect Index]

File /std/living/respond_cmd.c

This inheritable will handle all the generic stuff for commands that need a response. Like 'teach' and 'offer'.

Written by Pinkfish

Started Mon Aug 17 04:13:10 EDT 1998

Class Index

Method index

Public Functions

These are functions that everyone can access.

add_respond_command
void add_respond_command(string type,
                         object ob,
                         mixed data)

This method adds a responable command set of values to the living object.

Parameters:
type - the type of thing to set as a response
ob - the object which is giving us the thing
data - the data associated with the command


clear_respond_commands
void clear_respond_commands()
query_respond_command
mixed query_respond_command(string type,
                            object ob)

This method returns the data associated with specified type and object for a respondable command.

Parameters:
type - the type of the respondable
ob - the object we are checking against

Returns:
the data associated with the response, 0 if not found


remove_respond_command
void remove_respond_command(string type,
                            object ob)

This method removes the response for this command.

Parameters:
type - the type of the responable
ob - the object that we are removing a responable for


Classes

These are nice data types for dealing with... Data!