[Package Index | Mudlib Index | Effect Index]

File /obj/handlers/parcel.c

Post Office Delivery Handler

Written by Terano

Started 26 December, 1998

Inherits

This class inherits the following classes /global/auto_load.c

Includes

This class includes the following files /include/player_handler.h

Class Index

Method index

Public Functions

These are functions that everyone can access.

collect
int collect(string name,
            string location,
            object target,
            int copy)

This function collects any items available

Parameters:
name - Name of the player collecting
location - Location collecting from
target - An object to move the items into, a room or container
copy - An int, if its 1 it doesnt delete the objects from the parcels array

Returns:
0 if no items or failure, 1 if successful


deposit
int deposit(string to,
            string from,
            string location,
            object * obs)

This function deposits some items for a player

Parameters:
to - The name of the player items are going to
from - The name of the player sending the items
location - The place the items are being sent from
obs - An array of the objects being sent

Returns:
1 if it worked, or 0 if it screwed up :)


do_expire
void do_expire(int letter,
               string location)

Expire packages

Parameters:
letter - to expire
location - to expire


player_refreshed
void player_refreshed(mixed name,
                      int total)

Called when a player deletes Deletes all their parcels

Parameters:
string - name
int - Total Flag


queryparcels_for
class parcel * queryparcels_for(string name,
                                string location)

Queries if any parcels are at a location for a person

Parameters:
name - of the person
location - of the post office


Classes

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