[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 /d/am/inherit/am_prison_cell.c</h2>
Inherit for prison-cells in Ankh-Morpork.
Notifies the prison when players quit, go net-dead, flee or log in.
Also can restrict tells to players outside the cell (3 tells allowed)
and souls (none allowed).
<h2>Inherits</h2>
This class inherits the following classes .c<h2>Includes</h2>
This class includes the following files <a href="include.money.h.shtml">/include/money.h</a>, /include/shops/bank.h and /d/am/include/amcw.h<h2>Method index</h2>
<dl><ul>
<li><a href="#call_guard">call_guard</a>()<br/>
This command tells the player how long he'll have to stay in prison,
approximately.
<li><a href="#do_bail_yourself">do_bail_yourself</a>()<br/>
THis command bails the player, if he has enough money.
<li><a href="#event_death">event_death</a>(object, object, object, string, string)<li><a href="#event_enter">event_enter</a>(object, string, object)<li><a href="#event_exit">event_exit</a>(object, string, object)<li><a href="#event_net_dead">event_net_dead</a>(object)<li><a href="#event_quit">event_quit</a>(object)<li><a href="#query_prison">query_prison</a>()<br/>
This returns the prison associated with this cell.
<li><a href="#set_prison">set_prison</a>(string)<br/>
Sets the prison this cell belongs to.
</ul><h2>Public Functions</h2>
These are functions that everyone can access.<p>
.<ul><a name="call_guard">
call_guard</a><pre>
int call_guard()
</pre></br>
This command tells the player how long he'll have to stay in prison,
approximately.  If the player is no valid prisoner, he's freed.
<br/><ul>
<li><b>Returns:</b>
<br/>1 on success, 0 on failure

</dl>

<ul><a name="do_bail_yourself">
do_bail_yourself</a><pre>
int do_bail_yourself()
</pre></br>
THis command bails the player, if he has enough money.
<br/><ul>
<li><b>Returns:</b>
<br/>1 on success, 0 otherwise

</dl>

<ul><a name="event_death">
event_death</a><pre>
void event_death(object ob,
                 object killers,
                 object killer,
                 string room_mess,
                 string killer_mess)
</pre>
<ul><a name="event_enter">
event_enter</a><pre>
void event_enter(object player,
                 string mess,
                 object from)
</pre>
<ul><a name="event_exit">
event_exit</a><pre>
void event_exit(object player,
                string message,
                object to)
</pre>
<ul><a name="event_net_dead">
event_net_dead</a><pre>
void event_net_dead(object player)
</pre>
<ul><a name="event_quit">
event_quit</a><pre>
void event_quit(object player)
</pre>
<ul><a name="query_prison">
query_prison</a><pre>
string query_prison()
</pre></br>
This returns the prison associated with this cell.
<br/><ul>
<li><b>Returns:</b>
<br/>the filename of the prison

</dl>

<ul><a name="set_prison">
set_prison</a><pre>
void set_prison(string file)
</pre></br>
Sets the prison this cell belongs to.
<br/><ul>
<li><b>Parameters:</b>
<br/>file - the filename of the prison

</dl>


[an error occurred while processing this directive]

