<html><head><title>File money.c
</title></head><body bgcolor="#ffffff" TEXT="#000030" LINK="#4a529c" VLINK="#b57339">[ <a href="index.html">Package Index</a></code> | <a href="index_std.html">Mudlib Index</a></code> | <a href="index_eff.html">Effect Index</a></code> ]<br><hr><h2>Inherits</h2>
This class inherits the following classes <a href="std.object.c.html">/std/object.c</a><hr><h2>Includes</h2>
This class includes the following files <a href="include.money.h.html">/include/money.h</a>, <a href="include.move_failures.h.html">/include/move_failures.h</a>, <a href="include.obj_parser.h.html">/include/obj_parser.h</a> and <a href="include.shops.bank.h.html">/include/shops/bank.h</a><hr><h2>Method index</h2>
<dl><dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#adjust_money"><b>adjust_money</b></a>(mixed, string)<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#check_adjectives"><b>check_adjectives</b></a>()<dd>
This method goes through the coins and sets up all the adjectives
and plurals it needs to.
<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#find_best_fit"><b>find_best_fit</b></a>(mixed)<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#fixup_money_weight"><b>fixup_money_weight</b></a>()<dd>
This method fixes up the weight of the money object to be what it should
be.
<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#force_no_join"><b>force_no_join</b></a>()<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#group_object"><b>group_object</b></a>()<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#init_dynamic_arg"><b>init_dynamic_arg</b></a>(mapping, )<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#merge_coins"><b>merge_coins</b></a>()<dd>
This method merges two coin object together.
<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#new_money_object"><b>new_money_object</b></a>(mixed, string)<dd>
This method creates a new money object from the current object.
<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#query_already_joined"><b>query_already_joined</b></a>()<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#query_collective"><b>query_collective</b></a>()<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#query_dynamic_auto_load"><b>query_dynamic_auto_load</b></a>()<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#query_merger"><b>query_merger</b></a>()<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#query_money"><b>query_money</b></a>(string)<dd>
This method returns the amount of type of money there is in the array.
<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#query_money_array"><b>query_money_array</b></a>()<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#query_no_join"><b>query_no_join</b></a>()<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#query_number_coins"><b>query_number_coins</b></a>()<dd>
This method returns the number of coins in the object.
<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#reset_already_joined"><b>reset_already_joined</b></a>()<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#reset_no_join"><b>reset_no_join</b></a>()<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#set_already_joined"><b>set_already_joined</b></a>()<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#set_money_array"><b>set_money_array</b></a>(mixed *)<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#set_no_join"><b>set_no_join</b></a>()<dt><img src="images/cyan-ball-small.gif" height=6 width=6 alt=" o ">
<a href="#stats"><b>stats</b></a>()</dl><hr><h2>Public Functions</h2>
These are functions that everyone can access.<p><dl>
.<dt><a name="adjust_money">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>adjust_money</b></a><pre>
varargs int adjust_money(mixed amount,
string type)
</pre>
<dt><a name="check_adjectives">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>check_adjectives</b></a><pre>
void check_adjectives()
</pre><dd>
This method goes through the coins and sets up all the adjectives
and plurals it needs to.
<p>
<dt><a name="find_best_fit">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>find_best_fit</b></a><pre>
int find_best_fit(mixed word)
</pre>
<dt><a name="fixup_money_weight">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>fixup_money_weight</b></a><pre>
void fixup_money_weight()
</pre><dd>
This method fixes up the weight of the money object to be what it should
be.
<p>
<dt><a name="force_no_join">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>force_no_join</b></a><pre>
void force_no_join()
</pre>
<dt><a name="group_object">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>group_object</b></a><pre>
int group_object()
</pre>
<dt><a name="init_dynamic_arg">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>init_dynamic_arg</b></a><pre>
void init_dynamic_arg(mapping map,
object)
</pre>
<dt><a name="merge_coins">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>merge_coins</b></a><pre>
object merge_coins()
</pre><dd>
This method merges two coin object together. Or attempts to anyway.
This will occur whenever a coin object moves.<p>
<dd><dl>
<dt><b>Returns:</b>
<dd>the merged coin object
</dl>
<dt><a name="new_money_object">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>new_money_object</b></a><pre>
object new_money_object(mixed number,
string type)
</pre><dd>
This method creates a new money object from the current object. It uses
the current objects values to make the money and removes the avlues from
the coins.<p>
<dd><dl>
<dt><b>Parameters:</b>
<dd>number - the number of coins to remove
<dd>type - the type of coins to remove
<dt><b>Returns:</b>
<dd>the new money object
</dl>
<dt><a name="query_already_joined">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>query_already_joined</b></a><pre>
int query_already_joined()
</pre>
<dt><a name="query_collective">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>query_collective</b></a><pre>
int query_collective()
</pre>
<dt><a name="query_dynamic_auto_load">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>query_dynamic_auto_load</b></a><pre>
mapping query_dynamic_auto_load()
</pre>
<dt><a name="query_merger">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>query_merger</b></a><pre>
int query_merger()
</pre>
<dt><a name="query_money">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>query_money</b></a><pre>
int query_money(string type)
</pre><dd>
This method returns the amount of type of money there is in the array.<p>
<dd><dl>
<dt><b>Parameters:</b>
<dd>type - the type of money to check
<dt><b>Returns:</b>
<dd>the number of coins of that type
</dl>
<dt><a name="query_money_array">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>query_money_array</b></a><pre>
mixed * query_money_array()
</pre>
<dt><a name="query_no_join">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>query_no_join</b></a><pre>
int query_no_join()
</pre>
<dt><a name="query_number_coins">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>query_number_coins</b></a><pre>
int query_number_coins()
</pre><dd>
This method returns the number of coins in the object.<p>
<dd><dl>
<dt><b>Returns:</b>
<dd>the number of coins
</dl>
<dt><a name="reset_already_joined">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>reset_already_joined</b></a><pre>
void reset_already_joined()
</pre>
<dt><a name="reset_no_join">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>reset_no_join</b></a><pre>
void reset_no_join()
</pre>
<dt><a name="set_already_joined">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>set_already_joined</b></a><pre>
void set_already_joined()
</pre>
<dt><a name="set_money_array">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>set_money_array</b></a><pre>
void set_money_array(mixed * new_array)
</pre>
<dt><a name="set_no_join">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>set_no_join</b></a><pre>
void set_no_join()
</pre>
<dt><a name="stats">
<img src="images/cyan-ball.gif" width=12 height=12 alt=" * "><b>stats</b></a><pre>
mixed * stats()
</pre>
</dl>
<hr>
<center><font size="-1"><a href="http://discworld.imaginary.com/login.html">Discworld MUD</a>'s distribution world wide web pages.<br>brought to you by<br><strong>Cut Me Own Throat Dibbler's <a href="http://discworld.imaginary.com/sausages.html">Sensational Sausages</a>; buy one while they are hot.</strong><br>File last modified: Tue, 14 Oct 2003 17:48:15 GMT<br>
<hr>Lost? Try Discworld's <a href="http://discworld.imaginary.com/">home page</a>.</center></body></html>