[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/player_shop/counter.c</h2>
The standard inheritable object for player-run shop counters.

<p><b>Description</b></p>
The area behind the counter is the location of the sales log and the
cash register. It is also fitted as standard with a basic calculator
for those mathematically-challenged employees. 
</p>
<p>The register holds the shop's float. Employees can put money in,
or get money from the register as with any other container, and all
additions and removals are logged.
</p>
<p>The shop's log allows employees to log a sale or purchase to verify
the actions they have taken. This allows managers and supervisors to
confirm that employees are not taking advantage of the shop as all stock
movements, register adjustments and log entries should match up.
</p>
<p><b>See also:</b><br><a href="include.player_shop.h.shtml">/include/player_shop.h</a>, <a href="std.shops.player_shop.office.c.shtml">/std/shops/player_shop/office.c</a>, <a href="std.shops.player_shop.mgr_office.c.shtml">/std/shops/player_shop/mgr_office.c</a>, <a href="std.shops.player_shop.storeroom.c.shtml">/std/shops/player_shop/storeroom.c</a>, <a href="std.shops.player_shop.shop_front.c.shtml">/std/shops/player_shop/shop_front.c</a> and <a href="std.shops.player_shop.shopkeeper.c.shtml">/std/shops/player_shop/shopkeeper.c</a><p>Written by Ringo<p>Started 1st August 1999
<h3>Example</h3>
<pre>#include "path.h"

inherit "/std/shops/player_shop/counter";

void setup()
{
   set_light(60);
   set_office( PATH+ "office" );
   set_directions( "west", "south", "east" );

   set_short( "behind the counter of Tarnach's shop" );
   set_long( "This is the area behind the counter of the Creel Springs "
      "branch of Tarnach Fendertwin's Quality Consumables.\n" );
   add_exit( "south", PATH + "storeroom", "door" );
   add_exit( "east", PATH + "front", "path" );
   add_exit( "west", PATH + "office", "door" );
}
</pre>
<h2>Inherits</h2>
This class inherits the following classes <a href="std.room.basic_room.c.shtml">/std/room/basic_room.c</a><h2>Includes</h2>
This class includes the following files /include/shops/bank.h, <a href="include.money.h.shtml">/include/money.h</a> and <a href="include.player_shop.h.shtml">/include/player_shop.h</a><h2>Method index</h2>
<dl><ul>
<li><a href="#query_register">query_register</a>()<br/>
Query the value of the register's contents.
<li><a href="#set_directions">set_directions</a>(string, string, string)<br/>
Set the directions to other parts of the shop.
<li><a href="#set_office">set_office</a>(string)<br/>
Set the path of the main office.
</ul><h2>Public Functions</h2>
These are functions that everyone can access.<p>
.<ul><a name="query_register">
query_register</a><pre>
int query_register()
</pre></br>
Query the value of the register's contents.
<br/><ul>
<li><b>Returns:</b>
<br/>the current value of the register's contents

</dl>


<h2>Protected Functions</h2>
These are functions that only objects inheriting the class can access.<p>
<ul><a name="set_directions">
set_directions</a><pre>
void set_directions(string office,
                    string storeroom,
                    string shop)
</pre></br>
Set the directions to other parts of the shop.
This function is used by the npc shopkeeper to navigate around the shop,
using the exits at the given directions. These directions should be the
standard "north", "southeast" etc.
<br/><ul>
<li><b>Parameters:</b>
<br/>office - The direction to the office.
<br/>storeroom - The direction to the store room.
<br/>shop - The direction to the shop front.
<li><b>Example:</b>
<br/><pre>set_directions( "west", "south", "east" );

</pre></dl>

<ul><a name="set_office">
set_office</a><pre>
void set_office(string path)
</pre></br>
Set the path of the main office.
Also sets up the and restores the register.
<br/><ul>
<li><b>Parameters:</b>
<br/>path - The full path & filename to the office.

<li><b>Example:</b>
<br/><pre>set_office( PATH + "tarnach's_office" );</pre></dl>


[an error occurred while processing this directive]

