[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/shops/inherit/item_shop.c</h2>
Item shop inherit. <p><b>See also:</b><br>/std/shops/inherit/clone_on_demand
.c<p>Written by Pinkfish<h2>Inherits</h2>
This class inherits the following classes <a href="std.shops.inherit.shop_event.c.shtml">/std/shops/inherit/shop_event.c</a>, <a href="std.shops.inherit.open_shop.c.shtml">/std/shops/inherit/open_shop.c</a> and <a href="std.shops.inherit.clone_on_demand.c.shtml">/std/shops/inherit/clone_on_demand.c</a><h2>Includes</h2>
This class includes the following files /include/shops/item_shop.h, <a href="include.money.h.shtml">/include/money.h</a>, <a href="include.move_failures.h.shtml">/include/move_failures.h</a>, <a href="include.armoury.h.shtml">/include/armoury.h</a> and /include/shops/bank.h<h2>Method index</h2>
<dl><ul>
<li><a href="#do_banking">do_banking</a>()<li><a href="#query_browse_function">query_browse_function</a>()<br/>
This method returns the functionto be used when browseing something.
<li><a href="#query_buy_function">query_buy_function</a>()<br/>
This method returns the functionto be used when buying something.
<li><a href="#query_cost">query_cost</a>(object)<br/>
This method returns the cost of the item shop object being talked about.
<li><a href="#query_list_function">query_list_function</a>()<br/>
This method returns the functionto be used when listing something.
<li><a href="#query_max_float">query_max_float</a>()<li><a href="#query_no_steal">query_no_steal</a>()<br/>
Queries to see if the room is unstealable.
<li><a href="#query_safe">query_safe</a>()<br/>
query_safe - This method returns the object currently being used
as a safe in the shop.
<li><a href="#query_shop">query_shop</a>()<br/>
This method tells us if the shop is really a shop or not.
<li><a href="#query_shop_lift_items">query_shop_lift_items</a>(string, object)<br/>
This method returns the items which can potentially be shop lifted
with the passed in string.
<li><a href="#query_shoplift_response_handler">query_shoplift_response_handler</a>()<li><a href="#query_sort_function">query_sort_function</a>()<br/>
This method returns the function used to sort the inventory of the 
shop when it is printed out.
<li><a href="#query_steal_difficulty">query_steal_difficulty</a>(int)<br/>
This method returns the steal difficulty of the room.
<li><a href="#set_browse_function">set_browse_function</a>(function)<br/>
This method sets the function to use when browseing something from
the shop.
<li><a href="#set_buy_function">set_buy_function</a>(function)<br/>
This method sets the function to use when buying something from
the shop.
<li><a href="#set_list_function">set_list_function</a>(function)<br/>
This method sets the function to use when listing something from
the shop.
<li><a href="#set_max_float">set_max_float</a>(int)<li><a href="#set_no_steal">set_no_steal</a>(int)<br/>
Sets this room as being unstealable.
<li><a href="#set_open_condition">set_open_condition</a>(function)<br/>
This method makes it compatible with the way that the open stuff works in
the normal shops.
<li><a href="#set_open_func">set_open_func</a>(function)<br/>
This method sets the function to evaluate to detmine if the shop 
is open or not.
<li><a href="#set_safe">set_safe</a>(object)<br/>
This allows the creators to set their own safe.
<li><a href="#set_shoplift_response_handler">set_shoplift_response_handler</a>(string)<li><a href="#set_sort_function">set_sort_function</a>(function)<br/>
This method sets a function to be used to sort the inventory when it
is printed out.
<li><a href="#set_steal_difficulty">set_steal_difficulty</a>(int)<br/>
Sets the steal difficulty of the room.
<li><a href="#setup_safe">setup_safe</a>()<br/>
This method creates the safe in the room.
<li><a href="#shoplift_success">shoplift_success</a>(object)<br/>
This method turns the objects into real objects (if that is
nessessary, it is not with a normal shop).
<li><a href="#switch_extra_properties">switch_extra_properties</a>()</ul><h2>Public Functions</h2>
These are functions that everyone can access.<p>
.<ul><a name="do_banking">
do_banking</a><pre>
void do_banking()
</pre>
<ul><a name="query_browse_function">
query_browse_function</a><pre>
function query_browse_function()
</pre></br>
This method returns the functionto be used when browseing something.
<br/><ul>
<li><b>Returns:</b>
<br/>the function to be used when browseing something
<li><b>See also:</b>
<br/><a href="#query_list_function">query_list_function()</a>, <a href="#query_browse_function">query_browse_function()</a> and <a href="#set_buy_function">set_buy_function()
</a></dl>

<ul><a name="query_buy_function">
query_buy_function</a><pre>
function query_buy_function()
</pre></br>
This method returns the functionto be used when buying something.
<br/><ul>
<li><b>Returns:</b>
<br/>the function to be used when buying something
<li><b>See also:</b>
<br/><a href="#query_list_function">query_list_function()</a>, <a href="#query_browse_function">query_browse_function()</a> and <a href="#set_buy_function">set_buy_function()
</a></dl>

<ul><a name="query_cost">
query_cost</a><pre>
int query_cost(object thing)
</pre></br>
This method returns the cost of the item shop object being talked about.
<br/><ul>
<li><b>Parameters:</b>
<br/>thing - the thing to get the cost of
<li><b>Returns:</b>
<br/>the cost of the thing

</dl>

<ul><a name="query_list_function">
query_list_function</a><pre>
function query_list_function()
</pre></br>
This method returns the functionto be used when listing something.
<br/><ul>
<li><b>Returns:</b>
<br/>the function to be used when listing something
<li><b>See also:</b>
<br/><a href="#query_buy_function">query_buy_function()</a>, <a href="#query_browse_function">query_browse_function()</a> and <a href="#set_list_function">set_list_function()
</a></dl>

<ul><a name="query_max_float">
query_max_float</a><pre>
int query_max_float()
</pre>
<ul><a name="query_no_steal">
query_no_steal</a><pre>
int query_no_steal()
</pre></br>
Queries to see if the room is unstealable.
<br/><ul>
<li><b>Returns:</b>
<br/>1 for making the room unstealable
<li><b>See also:</b>
<br/><a href="#set_no_steal">set_no_steal()
</a></dl>

<ul><a name="query_safe">
query_safe</a><pre>
object query_safe()
</pre></br>
query_safe - This method returns the object currently being used
as a safe in the shop. 


<ul><a name="query_shop">
query_shop</a><pre>
int query_shop()
</pre></br>
This method tells us if the shop is really a shop or not.
<br/><ul>
<li><b>Returns:</b>
<br/>1 always

</dl>

<ul><a name="query_shop_lift_items">
query_shop_lift_items</a><pre>
object * query_shop_lift_items(string str,
                               object player)
</pre></br>
This method returns the items which can potentially be shop lifted
with the passed in string.
<br/><ul>
<li><b>Parameters:</b>
<br/>str - the name for the object to attempt to shop lift
<li><b>Returns:</b>
<br/>the array of matching objects
<li><b>See also:</b>
<br/><a href="#query_steal_difficulty">query_steal_difficulty()</a> and <a href="#query_shoplift_response_handler">query_shoplift_response_handler()
</a></dl>

<ul><a name="query_shoplift_response_handler">
query_shoplift_response_handler</a><pre>
string query_shoplift_response_handler()
</pre>
<ul><a name="query_sort_function">
query_sort_function</a><pre>
function query_sort_function()
</pre></br>
This method returns the function used to sort the inventory of the 
shop when it is printed out.
<br/><ul>
<li><b>Returns:</b>
<br/>the function to use to sort the inventory
<li><b>See also:</b>
<br/><a href="#set_sort_function">set_sort_function()
</a></dl>

<ul><a name="query_steal_difficulty">
query_steal_difficulty</a><pre>
int query_steal_difficulty(int i)
</pre></br>
This method returns the steal difficulty of the room.
<br/><ul>
<li><b>Returns:</b>
<br/>the steal difficulty of the room

</dl>

<ul><a name="set_browse_function">
set_browse_function</a><pre>
void set_browse_function(function func)
</pre></br>
This method sets the function to use when browseing something from
the shop.  The function will be called with two arguements, the
first is the player, the second is the array of objects being
browsed.
<br/><ul>
<li><b>Parameters:</b>
<br/>func - the function to set
<li><b>See also:</b>
<br/><a href="#set_list_function">set_list_function()</a>, <a href="#set_buy_function">set_buy_function()</a>, <a href="#set_browse_function">set_browse_function()</a> and <a href="#query_browse_function">query_browse_function()
</a></dl>

<ul><a name="set_buy_function">
set_buy_function</a><pre>
void set_buy_function(function func)
</pre></br>
This method sets the function to use when buying something from
the shop.  The function will be called with two arguements, the
first is the player, the second is the array of objects being
bought.
<br/><ul>
<li><b>Parameters:</b>
<br/>func - the function to set
<li><b>See also:</b>
<br/><a href="#set_list_function">set_list_function()</a>, <a href="#set_buy_function">set_buy_function()</a>, <a href="#set_browse_function">set_browse_function()</a> and <a href="#query_buy_function">query_buy_function()
</a></dl>

<ul><a name="set_list_function">
set_list_function</a><pre>
void set_list_function(function func)
</pre></br>
This method sets the function to use when listing something from
the shop.  The function will be called with two arguements, the
first is the player, the second is the array of objects being
bought.
<br/><ul>
<li><b>Parameters:</b>
<br/>func - the function to set
<li><b>See also:</b>
<br/><a href="#set_list_function">set_list_function()</a>, <a href="#set_buy_function">set_buy_function()</a>, <a href="#set_browse_function">set_browse_function()</a> and <a href="#query_list_function">query_list_function()
</a></dl>

<ul><a name="set_max_float">
set_max_float</a><pre>
void set_max_float(int f)
</pre>
<ul><a name="set_no_steal">
set_no_steal</a><pre>
void set_no_steal(int i)
</pre></br>
Sets this room as being unstealable.
<br/><ul>
<li><b>Parameters:</b>
<br/>i - 1 if the room is unable to be stolen from
<li><b>See also:</b>
<br/><a href="#query_no_steal">query_no_steal()
</a></dl>

<ul><a name="set_open_condition">
set_open_condition</a><pre>
void set_open_condition(function func)
</pre></br>
This method makes it compatible with the way that the open stuff works in
the normal shops.
<br/><ul>
<li><b>Parameters:</b>
<br/>func - the function to evaluate for openness
<li><b>See also:</b>
<br/><a href="#set_open_func">set_open_func()</a> and <a href="#query_open_func">query_open_func()
</a></dl>

<ul><a name="set_open_func">
set_open_func</a><pre>
void set_open_func(function func)
</pre></br>
This method sets the function to evaluate to detmine if the shop 
is open or not.
<br/><ul>
<li><b>Parameters:</b>
<br/>func - the function to evaluate for openness
<li><b>See also:</b>
<br/><a href="#query_open_func">query_open_func()</a> and <a href="#set_open_condition">set_open_condition()
</a></dl>

<ul><a name="set_safe">
set_safe</a><pre>
void set_safe(object safe)
</pre></br>
This allows the creators to set their own safe. 


<ul><a name="set_shoplift_response_handler">
set_shoplift_response_handler</a><pre>
void set_shoplift_response_handler(string word)
</pre>
<ul><a name="set_sort_function">
set_sort_function</a><pre>
void set_sort_function(function func)
</pre></br>
This method sets a function to be used to sort the inventory when it
is printed out.
<br/><ul>
<li><b>Parameters:</b>
<br/>func - the function to use to sort the inventory
<li><b>See also:</b>
<br/><a href="#query_sort_function">query_sort_function()
</a></dl>

<ul><a name="set_steal_difficulty">
set_steal_difficulty</a><pre>
void set_steal_difficulty(int i)
</pre></br>
Sets the steal difficulty of the room.
<br/><ul>
<li><b>Parameters:</b>
<br/>i - the steal difficulty of the room

</dl>

<ul><a name="setup_safe">
setup_safe</a><pre>
void setup_safe()
</pre></br>
This method creates the safe in the room.  The safe is then used for
various thief related activities.


<ul><a name="shoplift_success">
shoplift_success</a><pre>
object shoplift_success(object ob)
</pre></br>
This method turns the objects into real objects (if that is
nessessary, it is not with a normal shop).
<br/><ul>
<li><b>Parameters:</b>
<br/>ob - the object to turn into a normal object

</dl>

<ul><a name="switch_extra_properties">
switch_extra_properties</a><pre>
mixed * switch_extra_properties()
</pre>

[an error occurred while processing this directive]

