[Package Index | Mudlib Index | Effect Index]
File /obj/handlers/corpse_handler.c
A small handler to keep track of corpses.Written by Pinkfish
Started Thu Jun 13 17:22:06 PDT 2002
Includes
This class includes the following files /include/player_handler.hClass Index
Method index
Public Functions
These are functions that everyone can access.
-
check_corpses
void check_corpses()
This goes through the current list of corpses and tries to find them,
if not it creates them.
-
create_corpse
object create_corpse(string name,
int id)
This method creates the specific corpse.
- Parameters:
name - the player name to create it for
id - the id to create
- Returns:
the new corpse
-
deregister_corpse
void deregister_corpse(object ob)
This method deregisters the corpse from us. We forget about it and
it wombles off into the ether.
- Parameters:
corpse - the corpse to deregister
-
find_player_corpses
object * find_player_corpses(string player)
Finds all of the corpses for the player.
- Parameters:
player - the name of the player to find the corpses of
- Returns:
the list of player corpses
-
query_next_corpse_id
int query_next_corpse_id()
This method returns the next corpse id.
- Returns:
the next corpse id
-
register_corpse
void register_corpse(object ob)
This method registers the corpse with us.
- Parameters:
corpse - the corpse to register
-
save_corpse
void save_corpse(object ob)
This method will save the corpse data out to a nice file.
- Parameters:
ob - the object to save
Classes
These are nice data types for dealing with... Data!