<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Discworld MUD</title>
    <link href="/external/includes/style.css" rel="stylesheet" type="text/css">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <table border="0" width="95%">
        <tr>
          <td style="width:125px">
            <a href="/lpc/index.html"><img src="/external/images/logo_turtle.gif" style="border-style:none" alt="Home" width="110" height="106"></a>
          </td>
          <td valign="top">
            <br>
            <br>
            <script type="text/javascript" src="/external/includes/discworld.js"></script>
            <div id="textnav" style="visibility:hidden;position:absolute;">
              <a href="/lpc/about/">About</a>  | <a href="/lpc/playing/">Playing</a>  | <a href="/lpc/~Playtesters/">Playtesting</a>  | <a href="/lpc/creating/">Creating</a>  | <a href="/lpc/links/">Links</a> 
              <!--%textsubmenu%-->
            </div>
          </td>
        </tr>
        <tr>
          <td valign="top" style="width:125px">
            <!--%login%-->
          <p style="text-align:center" class="menu"><a href="javascript:popup('/external/java/newtelnet/java_client.shtml','JavaClient', 'width=800,height=600,resizable=yes,scrollbar=yes,toolbar=no,menubar=no,location=no,directories=no,status=no')">Play Now</a></p>

          </td>
          <td valign="top">


[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /obj/handlers/corpse_handler.c</h2>
A small handler to keep track of corpses.<p>Written by Pinkfish<p>Started Thu Jun 13 17:22:06 PDT 2002
<h2>Includes</h2>
This class includes the following files /include/player_handler.h<h2>Class Index</h2>
<ul><li><a href="#class_corpse_data">corpse_data</a>
</ul><h2>Method index</h2>
<ul>
<li><a href="#check_corpses">check_corpses</a>()<br/>
This goes through the current list of corpses and tries to find them,
if not it creates them.
<li><a href="#create_corpse">create_corpse</a>(string, int)<br/>
This method creates the specific corpse.
<li><a href="#deregister_corpse">deregister_corpse</a>(object)<br/>
This method deregisters the corpse from us.
<li><a href="#find_player_corpses">find_player_corpses</a>(string)<br/>
Finds all of the corpses for the player.
<li><a href="#query_next_corpse_id">query_next_corpse_id</a>()<br/>
This method returns the next corpse id.
<li><a href="#register_corpse">register_corpse</a>(object)<br/>
This method registers the corpse with us.
<li><a href="#save_corpse">save_corpse</a>(object)<br/>
This method will save the corpse data out to a nice file.
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="check_corpses">
check_corpses</a><pre class="autodocfuncdef">
void check_corpses()
</pre><dd><br />
This goes through the current list of corpses and tries to find them,
if not it creates them.
<br />

<dt class="autodocfuncname"><a name="create_corpse">
create_corpse</a><pre class="autodocfuncdef">
object create_corpse(string name,
                     int id)
</pre><dd><br />
This method creates the specific corpse.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the player name to create it for<br />
id - the id to create<br />
<br />
<dd><b>Returns:</b>
<br />the new corpse
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="deregister_corpse">
deregister_corpse</a><pre class="autodocfuncdef">
void deregister_corpse(object ob)
</pre><dd><br />
This method deregisters the corpse from us.  We forget about it and
it wombles off into the ether.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
corpse - the corpse to deregister
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="find_player_corpses">
find_player_corpses</a><pre class="autodocfuncdef">
object * find_player_corpses(string player)
</pre><dd><br />
Finds all of the corpses for the player.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
player - the name of the player to find the corpses of<br />
<br />
<dd><b>Returns:</b>
<br />the list of player corpses
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_next_corpse_id">
query_next_corpse_id</a><pre class="autodocfuncdef">
int query_next_corpse_id()
</pre><dd><br />
This method returns the next corpse id.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the next corpse id
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="register_corpse">
register_corpse</a><pre class="autodocfuncdef">
void register_corpse(object ob)
</pre><dd><br />
This method registers the corpse with us.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
corpse - the corpse to register
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="save_corpse">
save_corpse</a><pre class="autodocfuncdef">
void save_corpse(object ob)
</pre><dd><br />
This method will save the corpse data out to a nice file.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
ob - the object to save
<br />
<br />
<br /></dl>

</dl>
<h2>Classes</h2>
These are nice data types for dealing with...  Data!<p>
<ul>
<li><a name="class_corpse_data">
corpse_data</a><pre>
class corpse_data {
                    int id;
}

</pre>
</ul>
</td>
</tr>
<tr>
<td valign="bottom" align="center">
<table>
<tr>
<td align="center" class="imgcell">
<a href="http://validator.w3.org/check?uri=referer"><img src="/external/images/valid-html401" alt="Valid HTML 4.01 Transitional" height=31 width=88 border=0></a>
</td>
</tr>
<tr>
<td align="center" class="imgcell">
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img height="31" width="88" style="border-style:none" src="/external/images/vcss" alt="Valid CSS!"></a>
</td>
</tr>
<tr>
<td align="center">
<a href="/lpc/html_css.html" style="font-size:smaller">Read More</a>
</td>
</tr>
</table>
</td>
<td align="left" valign="top">
<h3></h3>
<p class="copyright">Brought to you by CMOT Dibbler's <a href="/lpc/sausages.html">Sensational Sausages</a>; buy one while they're hot.<br>
Copyright &copy; Discworld MUD, <a href="javascript:popup('/external/java/newtelnet/java_client.shtml','JavaClient', 'width=800,height=600,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no')">Play Now</a>, <a href="http://www.topmudsites.com/cgi-bin/topmuds/rankem.cgi?action=in&amp;id=pinkfish" rel="external">Vote</a>.</p>
</td>
</tr>
</table>
</body>
</html>

