[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/philosophies.c</h2>
This handler contains all the information on the philosophies used
in philosphical debates.<p>Written by Deutha
<h2>Method index</h2>
<ul>
<li><a href="#add_known">add_known</a>(string, string)<br/>
This method adds an argument to the specified person.
<li><a href="#add_philosophy">add_philosophy</a>(string, string, int, string, string)<br/>
This method adds a philosphy into the current list of philosphies.
<li><a href="#add_philosophy_argument">add_philosophy_argument</a>(string, string, mixed)<br/>
This method adds in a philosophy argument to the specified philosophy.
<li><a href="#query_all_known">query_all_known</a>(string)<br/>
This method returns all the arguments known to the person.
<li><a href="#query_known">query_known</a>(string, string)<br/>
This method checks to see if the person knows the argument.
<li><a href="#query_philosophies">query_philosophies</a>()<br/>
This method returns the current set of philosphies available.
<li><a href="#query_philosophy">query_philosophy</a>(string)<br/>
This method determines if the named philosphy exists.
<li><a href="#query_philosophy_all_arguments">query_philosophy_all_arguments</a>(string)<br/>
This method returns the arguments of the philosophy.
<li><a href="#query_philosophy_argument">query_philosophy_argument</a>(string, string)<br/>
This method returns the values for the specific argument in
philosophy.
<li><a href="#query_philosophy_bonus">query_philosophy_bonus</a>(string)<br/>
This method returns the bonus of the philosophy.
<li><a href="#query_philosophy_effect">query_philosophy_effect</a>(string)<br/>
This method returns the effect of the philosophy.
<li><a href="#query_philosophy_names">query_philosophy_names</a>()<br/>
This method returns the names of all the current philosophies.
<li><a href="#query_philosophy_needed">query_philosophy_needed</a>(string)<br/>
This method returns the needed string of the philosophy.
<li><a href="#query_philosophy_type">query_philosophy_type</a>(string)<br/>
This method returns the type of the philosophy.
<li><a href="#remove_known">remove_known</a>(string, string)<br/>
This method removes an argument from the specified person.
<li><a href="#remove_philosophy">remove_philosophy</a>(string)<br/>
This method removes the specified philosophy from the current list.
<li><a href="#remove_philosophy_argument">remove_philosophy_argument</a>(string, string)<br/>
This method removes a specified argument from the philosophy.
<li><a href="#reset_known">reset_known</a>(string)<br/>
This method resets the argument list for the specified person.
<li><a href="#save_me">save_me</a>()<br/>
This method saves the current state of the object.
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="add_known">
add_known</a><pre class="autodocfuncdef">
void add_known(string person,
               string argument)
</pre><dd><br />
This method adds an argument to the specified person.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
person - the person to add the argument to<br />
argument - the argument to add to the person<br />
<br />
<dd><b>See also:</b>
<br /><a href="#query_known">query_known()</a> and <a href="#query_all_known">query_all_known()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="add_philosophy">
add_philosophy</a><pre class="autodocfuncdef">
void add_philosophy(string name,
                    string type,
                    int bonus,
                    string needed,
                    string effect)
</pre><dd><br />
This method adds a philosphy into the current list of philosphies.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the philosophy<br />
type - the type of the philosophy<br />
bonus - the bonus of the philosophy<br />
needed - the string describing what you need<br />
effect - the effect of the philosphy<br />
<br />
<dd><b>See also:</b>
<br /><a href="#query_philosophy">query_philosophy()</a>, <a href="#query_philosophy_names">query_philosophy_names()</a> and <a href="#remove_philosophy">remove_philosophy()
</a><br /><br /><dd><b>Example:</b>
<br/><pre>add_philosophy("theology", "faith", 50, "the power of your faith",
               "/std/effects/religious/theological_debate");</pre><br /></dl>

<dt class="autodocfuncname"><a name="add_philosophy_argument">
add_philosophy_argument</a><pre class="autodocfuncdef">
void add_philosophy_argument(string name,
                             string argument,
                             mixed args)
</pre><dd><br />
This method adds in a philosophy argument to the specified philosophy.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the philosophy to add<br />
argument - the name of the argument to add<br />
args - the parameters for the argument<br />
<br />
<dd><b>See also:</b>
<br /><a href="#query_philosophy_argument">query_philosophy_argument()</a> and <a href="#remove_philosophy_argument">remove_philosophy_argument()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_all_known">
query_all_known</a><pre class="autodocfuncdef">
string * query_all_known(string person)
</pre><dd><br />
This method returns all the arguments known to the person.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
person - the person to get the arguments for<br />
<br />
<dd><b>Returns:</b>
<br />the list of all the known arguments<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_known">query_known()</a> and <a href="#add_known">add_known()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_known">
query_known</a><pre class="autodocfuncdef">
int query_known(string person,
                string argument)
</pre><dd><br />
This method checks to see if the person knows the argument.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
person - the person to check the argument for<br />
argument - the argument to check to see if it is known<br />
<br />
<dd><b>Returns:</b>
<br />1 if it is known, 0 if not.<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_known">add_known()</a> and <a href="#query_all_known">query_all_known()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_philosophies">
query_philosophies</a><pre class="autodocfuncdef">
mapping query_philosophies()
</pre><dd><br />
This method returns the current set of philosphies available.
The mapping consists of the value being the name of the philosphy
and the value being an array consisting of 5 elements.  You should
be using this call for anything except debugging purposes.  It
would create a bad dependancy otherwise.
<pre>
name : ({
      [string]  type (i.e. type.points is used),
      [int]     bonus (i.e. bonus in type.points that is needed),
      [string]  what is needed/increased to start,
      [string]  debate effect file name,
      [mapping] arguments
    })
</pre><br />
<br /><dl>
<dd><b>Returns:</b>
<br />a mapping of values<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_philosophy_names">query_philosophy_names()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_philosophy">
query_philosophy</a><pre class="autodocfuncdef">
int query_philosophy(string name)
</pre><dd><br />
This method determines if the named philosphy exists.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the philosphy to test<br />
<br />
<dd><b>Returns:</b>
<br />1 if it exists, 0 if it does not<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_philosophy_names">query_philosophy_names()</a>, <a href="#add_philosophy">add_philosophy()</a> and <a href="#remove_philosophy">remove_philosophy()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_philosophy_all_arguments">
query_philosophy_all_arguments</a><pre class="autodocfuncdef">
mapping query_philosophy_all_arguments(string name)
</pre><dd><br />
This method returns the arguments of the philosophy.  This returns
a mapping containing the argument values.  This should not be
used except for debuggin purposes.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the philosophy to get the arguments for<br />
<br />
<dd><b>Returns:</b>
<br />the arguments for the philosophy<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_philosphy_bonus">query_philosphy_bonus()</a>, <a href="#query_philosphy_type">query_philosphy_type()</a>, <a href="#query_philosphy_needed">query_philosphy_needed()</a>, <a href="#query_philosphy_effect">query_philosphy_effect()</a> and <a href="#query_philosphy_argument">query_philosphy_argument()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_philosophy_argument">
query_philosophy_argument</a><pre class="autodocfuncdef">
mixed query_philosophy_argument(string name,
                                string argument)
</pre><dd><br />
This method returns the values for the specific argument in
philosophy.   The returned array consists of three values, they
are ({ skill, something, something }).<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the philosphy to get the arguments for<br />
argument - the name of the argument to return<br />
<br />
<dd><b>Returns:</b>
<br />an array of the arguments values<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_philosphy_bonus">query_philosphy_bonus()</a>, <a href="#query_philosphy_type">query_philosphy_type()</a>, <a href="#query_philosphy_needed">query_philosphy_needed()</a>, <a href="#query_philosphy_effect">query_philosphy_effect()</a>, <a href="#add_philosphy_argument">add_philosphy_argument()</a> and <a href="#remove_philosphy_argument">remove_philosphy_argument()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_philosophy_bonus">
query_philosophy_bonus</a><pre class="autodocfuncdef">
int query_philosophy_bonus(string name)
</pre><dd><br />
This method returns the bonus of the philosophy.  An example of the
return value from this is 50.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the philosophy to get the bonus of<br />
<br />
<dd><b>Returns:</b>
<br />the bonus of the philosophy<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_philosphy_type">query_philosphy_type()</a>, <a href="#query_philosphy_effect">query_philosphy_effect()</a>, <a href="#query_philosphy_needed">query_philosphy_needed()</a> and <a href="#query_philosphy_argument">query_philosphy_argument()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_philosophy_effect">
query_philosophy_effect</a><pre class="autodocfuncdef">
string query_philosophy_effect(string name)
</pre><dd><br />
This method returns the effect of the philosophy.  An example of the
return value from this is "/std/effects/religious/theological_debate".<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the philosophy to get the effect of<br />
<br />
<dd><b>Returns:</b>
<br />the effect of the philosophy<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_philosphy_bonus">query_philosphy_bonus()</a>, <a href="#query_philosphy_type">query_philosphy_type()</a>, <a href="#query_philosphy_needed">query_philosphy_needed()</a> and <a href="#query_philosphy_argument">query_philosphy_argument()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_philosophy_names">
query_philosophy_names</a><pre class="autodocfuncdef">
string * query_philosophy_names()
</pre><dd><br />
This method returns the names of all the current philosophies.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />an array of strings of the names of philosophies<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_philosophy">query_philosophy()</a>, <a href="#add_philosophy">add_philosophy()</a> and <a href="#remove_philosophy">remove_philosophy()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_philosophy_needed">
query_philosophy_needed</a><pre class="autodocfuncdef">
string query_philosophy_needed(string name)
</pre><dd><br />
This method returns the needed string of the philosophy.  An example of the
return value from this is "the power of your faith".<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the philosophy to get the needes string for<br />
<br />
<dd><b>Returns:</b>
<br />the needed string for the philosophy<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_philosphy_bonus">query_philosphy_bonus()</a>, <a href="#query_philosphy_effect">query_philosphy_effect()</a>, <a href="#query_philosphy_type">query_philosphy_type()</a> and <a href="#query_philosphy_argument">query_philosphy_argument()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_philosophy_type">
query_philosophy_type</a><pre class="autodocfuncdef">
string query_philosophy_type(string name)
</pre><dd><br />
This method returns the type of the philosophy.  An example of the
return value from this is "faith".<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the philosophy to get the type of<br />
<br />
<dd><b>Returns:</b>
<br />the type of the philosophy<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_philosphy_bonus">query_philosphy_bonus()</a>, <a href="#query_philosphy_effect">query_philosphy_effect()</a>, <a href="#query_philosphy_needed">query_philosphy_needed()</a> and <a href="#query_philosphy_argument">query_philosphy_argument()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="remove_known">
remove_known</a><pre class="autodocfuncdef">
int remove_known(string person,
                 string argument)
</pre><dd><br />
This method removes an argument from the specified person.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
person - the person to remove the argument from<br />
argument - the argument to remove from the person<br />
<br />
<dd><b>See also:</b>
<br /><a href="#query_known">query_known()</a> and <a href="#query_all_known">query_all_known()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="remove_philosophy">
remove_philosophy</a><pre class="autodocfuncdef">
void remove_philosophy(string name)
</pre><dd><br />
This method removes the specified philosophy from the current list.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the philosphy to remove<br />
<br />
<dd><b>See also:</b>
<br /><a href="#query_philosophy">query_philosophy()</a>, <a href="#query_philosophy_names">query_philosophy_names()</a> and <a href="#add_philosophy">add_philosophy() 
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="remove_philosophy_argument">
remove_philosophy_argument</a><pre class="autodocfuncdef">
void remove_philosophy_argument(string name,
                                string argument)
</pre><dd><br />
This method removes a specified argument from the philosophy.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the philosphy to remove the argument form<br />
argument - the argument name to remove<br />
<br />
<dd><b>See also:</b>
<br /><a href="#add_philosophy_argument">add_philosophy_argument()</a> and <a href="#query_philosoph_argument">query_philosoph_argument()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="reset_known">
reset_known</a><pre class="autodocfuncdef">
int reset_known(string person)
</pre><dd><br />
This method resets the argument list for the specified person.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
person - the person to remove the argument from<br />
<br />
<dd><b>See also:</b>
<br /><a href="#query_known">query_known()</a> and <a href="#query_all_known">query_all_known()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="save_me">
save_me</a><pre class="autodocfuncdef">
void save_me()
</pre><dd><br />
This method saves the current state of the object.
<br />

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

