[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/property_tracker.c</h2>
Property tracker. <p>Written by Taffyd<p>Started 10/06/99 3:42AM<h2>Inherits</h2>
This class inherits the following classes /std/object.c<h2>Includes</h2>
This class includes the following files /include/player_handler.h, /include/login.h and /include/login_handler.h<h2>Method index</h2>
<ul>
<li><a href="#add_invalid_property">add_invalid_property</a>(string, mixed, mixed)<br/>
This function allows a new invalid property to be added to the list
of invalid ones.
<li><a href="#check_properties">check_properties</a>(mixed, string)<br/>
This method is called by the login handler every time someone logs onto
the MUD.
<li><a href="#convert_no_score">convert_no_score</a>(string, object, mixed)<li><a href="#query_invalid_properties">query_invalid_properties</a>()<br/>
This returns a list of all the properties that are marked as invalid.
<li><a href="#remove_invalid_property">remove_invalid_property</a>(string)<li><a href="#remove_warmth">remove_warmth</a>(string, object, mixed)<li><a href="#reset_data">reset_data</a>()<li><a href="#save_file">save_file</a>()</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="add_invalid_property">
add_invalid_property</a><pre class="autodocfuncdef">
varargs int add_invalid_property(string property,
                                 mixed func,
                                 mixed obj)
</pre><dd><br />
This function allows a new invalid property to be added to the list
of invalid ones.  The last two parameters are used so that you can
add a callback if you want to convert a property over to the quest
handler or whatever. They are optional.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
property - the property name to be added<br />
func - this parameter specifies the name of the function to be 
called when the property is removed<br />
obj - this parameter specifies the path of the object on which func
is called when the property is removed<br />
<br />
<dd><b>Returns:</b>
<br />1 if the property was added as invalid, 0 if it was not.<br /><br />
<dd><b>Example:</b>
<br/><pre>add_invalid_property( "womble frog" )</pre><br/><pre>
add_invalid_property( "grave_digger", "convert_property", "/d/sur/Nowhere/chars/isabel" )
</pre><br /></dl>

<dt class="autodocfuncname"><a name="check_properties">
check_properties</a><pre class="autodocfuncdef">
void check_properties(mixed person,
                      string type)
</pre><dd><br />
This method is called by the login handler every time someone logs onto
the MUD. It checks through any properties that they have, and removes
them if they are marked as invalid.
<p>
If a property function was set, then this function is called now when the 
property is removed. It is passed three parameters, string property,
object player, and mixed property_data.
<p><br />
<br /><dl>
<dd><b>Parameters:</b><br />
person - the person who is logging on<br />
type - the type of login event. Only LOGIN events are used
by this object. <br />
<br />
<dd><b>See also:</b>
<br />/include/login.h and /obj/handlers/login_handler.c
<br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="convert_no_score">
convert_no_score</a><pre class="autodocfuncdef">
void convert_no_score(string property,
                      object who,
                      mixed data)
</pre>
<dt class="autodocfuncname"><a name="query_invalid_properties">
query_invalid_properties</a><pre class="autodocfuncdef">
string query_invalid_properties()
</pre><dd><br />
This returns a list of all the properties that are marked as invalid.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />an array of invalid properties
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="remove_invalid_property">
remove_invalid_property</a><pre class="autodocfuncdef">
int remove_invalid_property(string property)
</pre>
<dt class="autodocfuncname"><a name="remove_warmth">
remove_warmth</a><pre class="autodocfuncdef">
int remove_warmth(string property,
                  object who,
                  mixed data)
</pre>
<dt class="autodocfuncname"><a name="reset_data">
reset_data</a><pre class="autodocfuncdef">
void reset_data()
</pre>
<dt class="autodocfuncname"><a name="save_file">
save_file</a><pre class="autodocfuncdef">
void save_file()
</pre>
</dl>
[an error occurred while processing this directive]

