[Package Index | Mudlib Index | Effect Index]
File /obj/handlers/guild_things/receipt_handler_old.c
 This is the Thieves' Guild receipt handler.  It keeps track of 
theft receipt information.
Written by Eron
Started 9/15/98
Includes
This class includes the following files /include/player_handler.h, /include/login.h, /include/login_handler.h, /include/money.h, /include/shops/bank.h and /include/thief.hClass Index
Method index
- delete_receipt(string, int)
 - get_id(string)
This function is used to generate unique IDs for new receipts.
 - make_receipt(object, object, object *)
This function is called by the Ankh-Morpork theft handler to
generate theft receipts.
 - query_cache()
 - query_data(string)
 - query_receipt_info(string)
This function is called by the thief receipt book to query
information about a thief's receipts.
 - query_total_stolen(string)
 - report_theft(object)
This function is called by the Ankh-Morpork receipt clerk
when a receipt is turned into the guild.
 - update_receipts(string)
This function is called when a thieves' quota resets to remove
old receipt data.
 
Public Functions
These are functions that everyone can access.
- 
delete_receipt
int delete_receipt(string thief,
                   int id)
- 
get_id
int get_id(string thief)
  
This function is used to generate unique IDs for new receipts.
- Parameters:
thief - the thief
- Returns:
int an id
  
- 
make_receipt
object make_receipt(object thief_ob,
                    object victim_ob,
                    object * stolen_obs)
 
This function is called by the Ankh-Morpork theft handler to
generate theft receipts.
- Parameters:
thief_ob - the thief
victim_ob - the victim
stolen_ob - array objects stolen
 
- 
query_cache
void query_cache()
- 
query_data
mapping query_data(string thief)
- 
query_receipt_info
string query_receipt_info(string thief_name)
   
This function is called by the thief receipt book to query
information about a thief's receipts.
- Parameters:
thief_name - the name of the thief
 
- 
query_total_stolen
int query_total_stolen(string thief)
- 
report_theft
void report_theft(object receipt)
  
This function is called by the Ankh-Morpork receipt clerk
when a receipt is turned into the guild.
- Parameters:
id - receipt_id of the receipt
illegal - 1 if theft was illegal
 
- 
update_receipts
void update_receipts(string thief_name)
 
This function is called when a thieves' quota resets to remove
old receipt data.
- Parameters:
thief_name - name of thief
 
Classes
These are nice data types for dealing with...  Data!