[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/room/council_citizenship.c</h2>
This is the place you go to try and become a citizen of the council
area.<p>Written by Pinkfish<p>Started Wed Sep 27 18:19:22 PDT 2000
<h2>Inherits</h2>
This class inherits the following classes <a href="std.basic.expressions.c.shtml">/std/basic/expressions.c</a>, <a href="std.room.inherit.council_base.c.shtml">/std/room/inherit/council_base.c</a>, <a href="std.room.inherit.honours.c.shtml">/std/room/inherit/honours.c</a> and <a href="std.room.basic_room.c.shtml">/std/room/basic_room.c</a><h2>Includes</h2>
This class includes the following files <a href="include.nomic_system.h.shtml">/include/nomic_system.h</a>, <a href="include.mail.h.shtml">/include/mail.h</a>, <a href="include.expressions.h.shtml">/include/expressions.h</a> and <a href="include.player_handler.h.shtml">/include/player_handler.h</a><h2>Class Index</h2>
<ul><li><a href="#class_approval_list">approval_list</a>
<li><a href="#class_approved_person">approved_person</a>
<li><a href="#class_blacklist">blacklist</a>
<li><a href="#class_denied">denied</a>
</ul><h2>Method index</h2>
<dl><ul>
<li><a href="#do_add_blacklist">do_add_blacklist</a>(string, string)<br/>
This method adds a person to the blacklist.
<li><a href="#do_apply">do_apply</a>()<br/>
This is the method used for someone to apply for citizenship.
<li><a href="#do_approve">do_approve</a>(string)<br/>
This method makes the citizen approved by a happy little magistrate.
<li><a href="#do_deny">do_deny</a>(string, string)<br/>
This allows you to put in a reason for denying someone for citizenship.
<li><a href="#do_list">do_list</a>()<br/>
This method lists all the current applicants.
<li><a href="#do_list_blacklist">do_list_blacklist</a>(int)<br/>
This method lists the current blacklist.
<li><a href="#do_list_denied">do_list_denied</a>()<br/>
This method lists the current set of denied people.
<li><a href="#do_list_expression">do_list_expression</a>()<br/>
This method lists the expression used for showing if someone is
allowed to be a citizen or not.
<li><a href="#do_remove_blacklist">do_remove_blacklist</a>(string)<br/>
This method removes a person from the blacklist.
<li><a href="#do_set_expression">do_set_expression</a>(string, int)<br/>
This method sets up the expression to use to check to make sure people
are allowed to apply for citizenship.
<li><a href="#do_sponsor">do_sponsor</a>(string)<br/>
This allows someone to sponsor someone for citizenship.
<li><a href="#load_me">load_me</a>()<br/>
This loads all the exciting data for the citizenship room.
<li><a href="#post_weekly_results">post_weekly_results</a>()<br/>
This method posts the weekly results about the citizenship approvals
to the council board.
<li><a href="#query_save_file">query_save_file</a>()<br/>
This method returns the current save file name.
<li><a href="#save_me">save_me</a>()<br/>
This method saves everything!
<li><a href="#set_save_file">set_save_file</a>(string)<br/>
This method sets the save file.
</ul><h2>Public Functions</h2>
These are functions that everyone can access.<p>
.<ul><a name="do_add_blacklist">
do_add_blacklist</a><pre>
int do_add_blacklist(string person,
                     string reason)
</pre></br>
This method adds a person to the blacklist.
<br/><ul>
<li><b>Parameters:</b>
<br/>person - the person to add
<br/>reason - the reason for them to be blacklisted

</dl>

<ul><a name="do_apply">
do_apply</a><pre>
int do_apply()
</pre></br>
This is the method used for someone to apply for citizenship.
<br/><ul>
<li><b>Returns:</b>
<br/>1 on success, 0 on failure

</dl>

<ul><a name="do_approve">
do_approve</a><pre>
int do_approve(string person)
</pre></br>
This method makes the citizen approved by a happy little magistrate.
<br/><ul>
<li><b>Parameters:</b>
<br/>person - the person to approve

</dl>

<ul><a name="do_deny">
do_deny</a><pre>
int do_deny(string person,
            string reason)
</pre></br>
This allows you to put in a reason for denying someone for citizenship.


<ul><a name="do_list">
do_list</a><pre>
int do_list()
</pre></br>
This method lists all the current applicants.


<ul><a name="do_list_blacklist">
do_list_blacklist</a><pre>
int do_list_blacklist(int verbose)
</pre></br>
This method lists the current blacklist.
<br/><ul>
<li><b>Parameters:</b>
<br/>verbose - list in verbose mode or not

</dl>

<ul><a name="do_list_denied">
do_list_denied</a><pre>
int do_list_denied()
</pre></br>
This method lists the current set of denied people.


<ul><a name="do_list_expression">
do_list_expression</a><pre>
int do_list_expression()
</pre></br>
This method lists the expression used for showing if someone is
allowed to be a citizen or not.


<ul><a name="do_remove_blacklist">
do_remove_blacklist</a><pre>
int do_remove_blacklist(string person)
</pre></br>
This method removes a person from the blacklist.
<br/><ul>
<li><b>Parameters:</b>
<br/>person - the person to remove

</dl>

<ul><a name="do_set_expression">
do_set_expression</a><pre>
int do_set_expression(string expression,
                      int sponsor_expr)
</pre></br>
This method sets up the expression to use to check to make sure people
are allowed to apply for citizenship.
<br/><ul>
<li><b>Parameters:</b>
<br/>expression - the expression to set the check to
<br/>sponsor_expr - sets the sponsor or the citizen expression

</dl>

<ul><a name="do_sponsor">
do_sponsor</a><pre>
int do_sponsor(string person)
</pre></br>
This allows someone to sponsor someone for citizenship.


<ul><a name="load_me">
load_me</a><pre>
void load_me()
</pre></br>
This loads all the exciting data for the citizenship room.


<ul><a name="post_weekly_results">
post_weekly_results</a><pre>
void post_weekly_results()
</pre></br>
This method posts the weekly results about the citizenship approvals
to the council board.


<ul><a name="query_save_file">
query_save_file</a><pre>
string query_save_file()
</pre></br>
This method returns the current save file name.
<br/><ul>
<li><b>Returns:</b>
<br/>the current save file name

</dl>

<ul><a name="save_me">
save_me</a><pre>
void save_me()
</pre></br>
This method saves everything!


<ul><a name="set_save_file">
set_save_file</a><pre>
void set_save_file(string fname)
</pre></br>
This method sets the save file.
<br/><ul>
<li><b>Parameters:</b>
<br/>fname - the name of the save file

</dl>


<h2>Classes</h2>
These are nice data types for dealing with...  Data!<p>
<ul>
<li><a name="class_approval_list">
approval_list</a><pre>
class approval_list {
                      string * sponsors;
                      mapping against;
                      int time_added;
}

</pre>
<li><a name="class_approved_person">
approved_person</a><pre>
class approved_person {
                        class approval_list info;
                        int time_approved;
                        string approver;
                        int denied;
}

</pre>
<li><a name="class_blacklist">
blacklist</a><pre>
class blacklist {
                  string blacklister;
                  string reason;
}

</pre>
<li><a name="class_denied">
denied</a><pre>
class denied {
               string denier;
               string deny_reason;
               int time_denied;
}

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

