[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 /std/living/spells.c</h2>
This method returns the string help for the spell.  It is used by the
help command to find the help for the spell.<h2>Includes</h2>
This class includes the following files /include/spells.h<h2>Class Index</h2>
<ul><li><a href="#class_spell_process">spell_process</a>
</ul><h2>Method index</h2>
<ul>
<li><a href="#add_spell">add_spell</a>(string, mixed, mixed)<br/>
This method adds a spell into the current spell list.
<li><a href="#check_old_spells">check_old_spells</a>()<li><a href="#help_spell">help_spell</a>(string)<li><a href="#query_spell">query_spell</a>(string)<br/>
This method finds the data for the spell of the specific name
<li><a href="#query_spells">query_spells</a>()<br/>
This method returns the current bunch of spells for the object.
<li><a href="#query_spells_nocase">query_spells_nocase</a>()<br/>
This method returns the list of spells without any case issues.
<li><a href="#remove_spell">remove_spell</a>(string)<br/>
This method removes the spell of the given name.
<li><a href="#reset_spells">reset_spells</a>()<br/>
This method resets all the spell data.
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="add_spell">
add_spell</a><pre class="autodocfuncdef">
int add_spell(string name,
              mixed ob,
              mixed func)
</pre><dd><br />
This method adds a spell into the current spell list.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the spell to add<br />
ob - the object the spell is on<br />
func - the function to call for the spell<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="check_old_spells">
check_old_spells</a><pre class="autodocfuncdef">
void check_old_spells()
</pre>
<dt class="autodocfuncname"><a name="help_spell">
help_spell</a><pre class="autodocfuncdef">
string help_spell(string str)
</pre>
<dt class="autodocfuncname"><a name="query_spell">
query_spell</a><pre class="autodocfuncdef">
mixed query_spell(string word)
</pre><dd><br />
This method finds the data for the spell of the specific name<br />
<br /><dl>
<dd><b>Parameters:</b><br />
word - the name of the spell to find data on<br />
<br />
<dd><b>Returns:</b>
<br />the data for the spell
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_spells">
query_spells</a><pre class="autodocfuncdef">
mapping query_spells()
</pre><dd><br />
This method returns the current bunch of spells for the object.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the spells
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_spells_nocase">
query_spells_nocase</a><pre class="autodocfuncdef">
mapping query_spells_nocase()
</pre><dd><br />
This method returns the list of spells without any case issues.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the list of spells without any case
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="remove_spell">
remove_spell</a><pre class="autodocfuncdef">
int remove_spell(string name)
</pre><dd><br />
This method removes the spell of the given name.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the spell to remove<br />
<br />
<dd><b>Returns:</b>
<br />1 on succes, 0 on failure
<br /><br />
<br /></dl>

</dl>
<h2>Protected Functions</h2>
These are functions that only objects inheriting the class can access.<p>
<dl>
<dt class="autodocfuncname"><a name="reset_spells">
reset_spells</a><pre class="autodocfuncdef">
void reset_spells()
</pre><dd><br />
This method resets all the spell data.
<br />

</dl>
<h2>Classes</h2>
These are nice data types for dealing with...  Data!<p>
<ul>
<li><a name="class_spell_process">
spell_process</a><pre>
class spell_process {
                      mapping spells;
                      mapping process;
}

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

