[Package Index | Mudlib Index | Effect Index]

File /std/shops/player_shop/counter.c

The standard inheritable object for player-run shop counters.

Description

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.

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.

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.

See also:
/include/player_shop.h, /std/shops/player_shop/office.c, /std/shops/player_shop/mgr_office.c, /std/shops/player_shop/storeroom.c, /std/shops/player_shop/shop_front.c and /std/shops/player_shop/shopkeeper.c

Written by Ringo

Started 1st August 1999

Example

#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" );
}

Inherits

This class inherits the following classes /std/room/basic_room.c

Includes

This class includes the following files /include/shops/bank.h, /include/money.h and /include/player_shop.h

Method index

Public Functions

These are functions that everyone can access.

.

Protected Functions

These are functions that only objects inheriting the class can access.