|
|
|||
[Package Index | Mudlib Index | Effect Index]File /std/shops/player_shop/counter.cThe 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: 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" );
}
InheritsThis class inherits the following classes /std/room/basic_room.cIncludesThis class includes the following files /include/shops/bank.h, /include/money.h and /include/player_shop.hMethod index
Public FunctionsThese are functions that everyone can access.. int query_register()Query the value of the register's contents. Protected FunctionsThese are functions that only objects inheriting the class can access.
void set_directions(string office,
string storeroom,
string shop)
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.
|
||||
|
Brought to you by CMOT Dibbler's Sensational Sausages; buy one while they're hot. |