[an error occurred while processing this directive]
[<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/parcel.c</h2>

Post Office Delivery Handler<p>Written by Terano<p>Started 26 December, 1998

<h2>Inherits</h2>
This class inherits the following classes /global/auto_load.c<h2>Includes</h2>
This class includes the following files /include/player_handler.h<h2>Class Index</h2>
<ul><li><a href="#class_parcel">parcel</a>
<br/>
Parcels is a mapping with player names as keys, and arrays of class parcel
as values

</ul><h2>Method index</h2>
<ul>
<li><a href="#collect">collect</a>(string, string, object, int)<br/>
This function collects any items available
<li><a href="#deposit">deposit</a>(string, string, string, object *)<br/>
This function deposits some items for a player
<li><a href="#do_expire">do_expire</a>(int, string)<br/>
Expire packages
<li><a href="#player_refreshed">player_refreshed</a>(mixed, int)<br/>
Called when a player deletes
Deletes all their parcels
<li><a href="#queryparcels_for">queryparcels_for</a>(string, string)<br/>
Queries if any parcels are at a location for a person
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="collect">
collect</a><pre class="autodocfuncdef">
int collect(string name,
            string location,
            object target,
            int copy)
</pre><dd><br />
This function collects any items available<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - Name of the player collecting<br />
location - Location collecting from<br />
target - An object to move the items into, a room or container<br />
copy - An int, if its 1 it doesnt delete the objects from the parcels
       array<br />
<br />
<dd><b>Returns:</b>
<br />0 if no items or failure, 1 if successful
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="deposit">
deposit</a><pre class="autodocfuncdef">
int deposit(string to,
            string from,
            string location,
            object * obs)
</pre><dd><br />
This function deposits some items for a player<br />
<br /><dl>
<dd><b>Parameters:</b><br />
to - The name of the player items are going to<br />
from - The name of the player sending the items<br />
location - The place the items are being sent from<br />
obs - An array of the objects being sent<br />
<br />
<dd><b>Returns:</b>
<br />1 if it worked, or 0 if it screwed up :)
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_expire">
do_expire</a><pre class="autodocfuncdef">
void do_expire(int letter,
               string location)
</pre><dd><br />
Expire packages<br />
<br /><dl>
<dd><b>Parameters:</b><br />
letter - to expire<br />
location - to expire
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="player_refreshed">
player_refreshed</a><pre class="autodocfuncdef">
void player_refreshed(mixed name,
                      int total)
</pre><dd><br />
Called when a player deletes
Deletes all their parcels<br />
<br /><dl>
<dd><b>Parameters:</b><br />
string - name<br />
int - Total Flag
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="queryparcels_for">
queryparcels_for</a><pre class="autodocfuncdef">
class parcel * queryparcels_for(string name,
                                string location)
</pre><dd><br />
Queries if any parcels are at a location for a person<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - of the person<br />
location - of the post office
<br />
<br />
<br /></dl>

</dl>
<h2>Classes</h2>
These are nice data types for dealing with...  Data!<p>
<ul>
<li><a name="class_parcel">
parcel</a><pre>
class parcel {
               string from;
               string * autoloadinfo;
               int exp_time;
}

</pre><br/>
Parcels is a mapping with player names as keys, and arrays of class parcel
as values
<p>

</ul>
[an error occurred while processing this directive]

