[ Package Index | Mudlib Index | Effect Index ]

File /obj/corpse.c

This method returns the id associated with the corpse.

Inherits

This class inherits the following classes /std/container.c, /std/living/carrying.c and /std/basic/virtual_quit_control.c

Includes

This class includes the following files /include/corpse.h, /include/move_failures.h and /include/bit.h

Method index

 o add_bit_gone(string)
 o can_find_match_recurse_into(object)
 o do_decay()
This is called to decay the corpse.
 o find_inv_match(string, object)
 o get(mixed)
 o give_permission(string)
 o init_dynamic_arg(mapping, )
 o long(string, int)
 o make_bit(string)
 o make_bits(string *)
 o move_or_destruct(object)
 o query_armours()
 o query_bit_left(string)
 o query_bit_left_pl(string)
 o query_bits_gone()
 o query_bits_left()
 o query_corpse()
 o query_corpse_id()
 o query_decay()
 o query_dynamic_auto_load()
 o query_edible_bits_left()
 o query_holding()
 o query_name()
 o query_owner()
 o query_permitted()
 o query_race_name()
 o query_race_ob()
 o query_save_data()
This is used by the corpse handler to get the data used to save the corpse.
 o query_static_auto_load()
 o query_weapon()
 o query_wearing()
 o remove_armour(object)
 o remove_array_parts(string *, string *)
 o remove_creator_corpse(object)
 o set_armours(object *)
 o set_bits_gone(string *)
 o set_decay(int)
 o set_decay_messages()
This method sets up the various 'states; of the corpse to show how decayed it is.
 o set_hold(object, int)
 o set_holding(object *)
 o set_owner(string, object)
This method initially sets up the corpse object.
 o set_race_name(string)
 o set_race_ob(string)
 o set_unhold(object)
 o set_weapon(object)
 o setup_corpse_from_save(string, string, int)
This method is called by the corpse handler to setup the corpse properly after it loads.
 o stats()
 o test_remove(object, int, mixed)
 o unwield_weapon(object)

Public Functions

These are functions that everyone can access.

.
 * add_bit_gone
mixed * add_bit_gone(string bit)
 * can_find_match_recurse_into
int can_find_match_recurse_into(object player)
 * do_decay
void do_decay()
This is called to decay the corpse. It is done in a continuous call out loop until all of the decay has been completed.

 * find_inv_match
varargs object * find_inv_match(string s,
                                object looker)
 * get
int get(mixed dest)
 * give_permission
void give_permission(string words)
 * init_dynamic_arg
void init_dynamic_arg(mapping map,
                       object)
 * long
string long(string words,
            int dark)
 * make_bit
object make_bit(string which_bit)
 * make_bits
object * make_bits(string * what_bits)
 * move_or_destruct
int move_or_destruct(object dest)
 * query_armours
object * query_armours()
 * query_bit_left
string query_bit_left(string s)
 * query_bit_left_pl
string * query_bit_left_pl(string s)
 * query_bits_gone
string * query_bits_gone()
 * query_bits_left
string * query_bits_left()
 * query_corpse
int query_corpse()
 * query_corpse_id
int query_corpse_id()
 * query_decay
int query_decay()
 * query_dynamic_auto_load
mapping query_dynamic_auto_load()
 * query_edible_bits_left
string * query_edible_bits_left()
 * query_holding
object * query_holding()
 * query_name
string query_name()
 * query_owner
string query_owner()
 * query_permitted
string * query_permitted()
 * query_race_name
string query_race_name()
 * query_race_ob
string query_race_ob()
 * query_save_data
string query_save_data()
This is used by the corpse handler to get the data used to save the corpse.

 * query_static_auto_load
mapping query_static_auto_load()
 * query_weapon
object query_weapon()
 * query_wearing
object * query_wearing()
 * remove_armour
void remove_armour(object arm)
 * remove_array_parts
string * remove_array_parts(string * a1,
                            string * a2)
 * remove_creator_corpse
void remove_creator_corpse(object ob)
 * set_armours
void set_armours(object * things)
 * set_bits_gone
void set_bits_gone(string * bits)
 * set_decay
void set_decay(int dec)
 * set_decay_messages
void set_decay_messages()
This method sets up the various 'states; of the corpse to show how decayed it is.

 * set_hold
int * set_hold(object ob,
               int pos)
 * set_holding
void set_holding(object * hold)
 * set_owner
void set_owner(string words,
               object thing)
This method initially sets up the corpse object. Generally speaking words should be 0 and the 'thing' variable should be set to the object which just died.

Parameters:
words - the owner of the object
thing - the object to get the ownership data from
 * set_race_name
void set_race_name(string str)
 * set_race_ob
void set_race_ob(string s)
 * set_unhold
int * set_unhold(object ob)
 * set_weapon
void set_weapon(object wpn)
 * setup_corpse_from_save
void setup_corpse_from_save(string str_data,
                            string name,
                            int id)
This method is called by the corpse handler to setup the corpse properly after it loads.

 * stats
mixed * stats()
 * test_remove
int test_remove(object thing,
                int flag,
                mixed dest)
 * unwield_weapon
void unwield_weapon(object wpn)

Discworld MUD's distribution world wide web pages.
brought to you by
Cut Me Own Throat Dibbler's Sensational Sausages; buy one while they are hot.
File last modified: Tue, 14 Oct 2003 16:22:03 GMT

Lost? Try Discworld's home page.