|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Librarian
A Librarian is a kind of shopkeeper that belongs to a "chain" which shares access to a common store of shop items. Players can go to a librarian in a chain to borrow items available to the chain. Librarians respond to new commands such as DEPOSIT and WITHDRAW that normal shopkeepers do not. Borrowed items not re-deposited within the proper amount of time are auto-returned, and the borrower charged a penalty. Since they lend and retrieve any item in the shop inventory, they do not have a shopkeeper type, but respect whatever type they are.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.core.interfaces.ShopKeeper |
|---|
ShopKeeper.ShopPrice |
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_BORROWED
The default maximum number of items that one person can have checked out at any given time. |
static int |
DEFAULT_MAX_OVERDUE_DAYS
The default maximum number of mud-days that an item can be checked out. |
static double |
DEFAULT_MIN_OVERDUE_CHARGE
The daily minimum base currency charge due the moment a withdrawn item becomes overdue. |
static double |
DEFAULT_MIN_OVERDUE_DAILY
The default daily base currency charge due every day a withdrawn item remains overdue. |
static int |
DEFAULT_MIN_OVERDUE_DAYS
The default number of mud-days that an item can be checked out before being overdue. |
static double |
DEFAULT_PCT_OVERDUE_CHARGE
The default percent from 0 to 1, of the value of a withdrawn item, in base currency charge, due the moment a withdrawn item becomes overdue. |
static double |
DEFAULT_PCT_OVERDUE_DAILY
The default percent from 0 to 1, of the value of a withdrawn item, in base currency charge, due every day that a withdrawn item remains overdue. |
| Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.ShopKeeper |
|---|
DEAL_ALCHEMIST, DEAL_ANYTECHNOLOGY, DEAL_ANYTHING, DEAL_ARMOR, DEAL_AUCTIONEER, DEAL_BANKER, DEAL_BOOKS, DEAL_BUTCHER, DEAL_CASTER, DEAL_CLANBANKER, DEAL_CLANDSELLER, DEAL_CLANPOSTMAN, DEAL_CONFLICTS, DEAL_CSHIPSELLER, DEAL_DESCS, DEAL_FOODSELLER, DEAL_GENERAL, DEAL_GROWER, DEAL_HIDESELLER, DEAL_INNKEEPER, DEAL_INSTRUMENTS, DEAL_INVENTORYONLY, DEAL_JEWELLER, DEAL_LANDSELLER, DEAL_LEATHER, DEAL_LUMBERER, DEAL_MAGIC, DEAL_METALSMITH, DEAL_PETS, DEAL_POSTMAN, DEAL_READABLES, DEAL_SHIPSELLER, DEAL_SLAVES, DEAL_STONEYARDER, DEAL_TRAINER, DEAL_WEAPONS |
| Method Summary | |
|---|---|
java.lang.String |
contributorMask()
Returns the mask used to determine if a contributor is ignored by the Librarian for contribution. |
CoffeeShop |
getBaseLibrary()
Returns the underlying basic book stock of the library, as opposed to the current shop, which reflects only what is there at the moment. |
double |
getDailyOverdueCharge()
Gets the daily base currency charge due every day a withdrawn item remains overdue. |
double |
getDailyOverdueChargePct()
Gets the percent from 0 to 1, of the value of a withdrawn item, in base currency charge, due every day that a withdrawn item remains overdue. |
int |
getMaxBorrowed()
Gets the maximum number of items that one person can have checked out at any given time. |
int |
getMaxOverdueDays()
Gets the maximum number of mud-days that an item can be checked out. |
int |
getMinOverdueDays()
Gets the number of mud-days that an item can be checked out before being overdue. |
double |
getOverdueCharge()
Gets the minimum base currency charge due the moment a withdrawn item becomes overdue. |
double |
getOverdueChargePct()
Gets the percent from 0 to 1, of the value of a withdrawn item, in base currency charge, due the moment a withdrawn item becomes overdue. |
java.lang.String |
libraryChain()
Gets the name of the library chain to which this librarian belongs. |
void |
setContributorMask(java.lang.String mask)
Sets the mask used to determine if a contributor is ignored by the Librarian for contribution. |
void |
setDailyOverdueCharge(double charge)
Sets the daily base currency charge due every day a withdrawn item remains overdue. |
void |
setDailyOverdueChargePct(double pct)
Sets the percent from 0 to 1, of the value of a withdrawn item, in base currency charge, due every day that a withdrawn item remains overdue. |
void |
setLibraryChain(java.lang.String name)
Sets the name of the library chain to which this librarian belongs. |
void |
setMaxBorrowed(int items)
Sets the maximum number of items that one person can have checked out at any given time. |
void |
setMaxOverdueDays(int days)
Sets the maximum number of mud-days that an item can be checked out. |
void |
setMinOverdueDays(int days)
Sets the number of mud-days that an item can be checked out before being overdue. |
void |
setOverdueCharge(double charge)
Sets the minimum base currency charge due the moment a withdrawn item becomes overdue. |
void |
setOverdueChargePct(double pct)
Sets the percent from 0 to 1, of the value of a withdrawn item, in base currency charge, due the moment a withdrawn item becomes overdue. |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.ShopKeeper |
|---|
addSoldType, doISellThis, getShop, getWhatIsSoldMask, getWhatIsSoldZappermask, isSold, setWhatIsSoldMask, setWhatIsSoldZappermask, storeKeeperString |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Economics |
|---|
budget, devalueRate, finalBudget, finalDevalueRate, finalIgnoreMask, finalInvResetRate, finalItemPricingAdjustments, finalPrejudiceFactors, ignoreMask, invResetRate, itemPricingAdjustments, prejudiceFactors, setBudget, setDevalueRate, setIgnoreMask, setInvResetRate, setItemPricingAdjustments, setPrejudiceFactors |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, name, tick |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
|---|
affectCharState, affectCharStats, affectPhyStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
|---|
executeMsg, okMessage |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
|---|
amDestroyed, destroy, isSavable, setSavable |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Field Detail |
|---|
static final double DEFAULT_MIN_OVERDUE_CHARGE
static final double DEFAULT_PCT_OVERDUE_CHARGE
static final double DEFAULT_MIN_OVERDUE_DAILY
static final double DEFAULT_PCT_OVERDUE_DAILY
static final int DEFAULT_MIN_OVERDUE_DAYS
static final int DEFAULT_MAX_OVERDUE_DAYS
static final int DEFAULT_MAX_BORROWED
| Method Detail |
|---|
double getOverdueCharge()
setOverdueCharge(double)void setOverdueCharge(double charge)
charge - the base chargesetOverdueCharge(double)double getDailyOverdueCharge()
setDailyOverdueCharge(double)void setDailyOverdueCharge(double charge)
charge - the daily charge from 0-1setDailyOverdueCharge(double)double getOverdueChargePct()
setOverdueChargePct(double)void setOverdueChargePct(double pct)
pct - the base charge as pct of item value from 0-1setOverdueChargePct(double)double getDailyOverdueChargePct()
setDailyOverdueChargePct(double)void setDailyOverdueChargePct(double pct)
pct - the base charge as pct of item value from 0-1setDailyOverdueChargePct(double)int getMinOverdueDays()
setMinOverdueDays(int),
getMaxOverdueDays(),
setMaxOverdueDays(int)void setMinOverdueDays(int days)
days - mud-days before its overduegetMinOverdueDays(),
getMaxOverdueDays(),
setMaxOverdueDays(int)int getMaxOverdueDays()
setMaxOverdueDays(int),
getMinOverdueDays(),
setMinOverdueDays(int)void setMaxOverdueDays(int days)
days - mud-days to be overduegetMaxOverdueDays(),
getMinOverdueDays(),
setMinOverdueDays(int)int getMaxBorrowed()
setMaxBorrowed(int)void setMaxBorrowed(int items)
items - number of itemsgetMaxBorrowed()java.lang.String libraryChain()
setLibraryChain(String)void setLibraryChain(java.lang.String name)
name - the library chain namelibraryChain()java.lang.String contributorMask()
MaskingLibrary,
Librarian#finalContributorMask(),
setContributorMask(String)void setContributorMask(java.lang.String mask)
mask - the mask to useMaskingLibrary,
Librarian#finalContributorMask(),
contributorMask()CoffeeShop getBaseLibrary()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||