|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Banker
A Banker is a kind of shopkeeper that belongs to a "chain" which shares access to a common store of player/clan accounts to hold money and items. Players must go to a banker in the same chain to retrieve money and items deposited with the chain. Bankers respond to new commands such as DEPOSIT and WITHDRAW that normal shopkeepers do not. Bankers also respect marriage by giving both parters access to each others accounts. Bankers can serve an entire clan, or a single player.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.core.interfaces.ShopKeeper |
---|
ShopKeeper.ShopPrice |
Field Summary | |
---|---|
static double |
MIN_ITEM_BALANCE_DIVISOR
The default value by which the value of items is divided to determine minimum money to continue item storage. |
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 | |
---|---|
void |
addDepositInventory(java.lang.String depositorName,
Item item,
Item container)
Deposits a new item into the given account. |
java.lang.String |
bankChain()
Gets the name of the bank chain to which this banker belongs. |
void |
delAllDeposits(java.lang.String depositorName)
Empties all the items and money from a given depositors box. |
java.util.List<Item> |
delDepositInventory(java.lang.String depositorName,
Item likeItem)
Deletes item into the given account. |
Item |
findDepositInventory(java.lang.String mob,
java.lang.String likeThis)
Searches the deposit inventory for an item with a substring name like the one given, returning the first found. |
java.util.List<java.lang.String> |
getAccountNames()
Returns all the player and clan names who have open accounts at this bank. |
double |
getBalance(java.lang.String depositorName)
Returns the money balance in the account, in base value |
java.lang.String |
getBankClientName(MOB mob,
Clan.Function func,
boolean checked)
When the given mob tries to deposit or withdraw something, this method is called to get the proper account name, which is either the mob themselves or their clan, if they are (optionally) permitted by their rank. |
double |
getCoinInterest()
Gets the interest rate paid (or cost) on deposited money. |
MoneyLibrary.DebtItem |
getDebtInfo(java.lang.String depositorName)
Returns debt information for the given depositor to this bank chain. |
java.util.List<Item> |
getDepositedItems(java.lang.String depositorName)
Returns all of the items deposited in the account. |
double |
getItemInterest()
Gets the interest rate paid (or cost) on the value of deposited items. |
double |
getLoanInterest()
Gets the interest rate paid (or cost) on loaned out funds as debt. |
int |
numberDeposited(java.lang.String depositorName)
Returns the number of items deposited, including money items |
void |
setBankChain(java.lang.String name)
Sets the name of the bank chain to which this banker belongs. |
void |
setCoinInterest(double interest)
Sets the interest rate paid (or cost) on deposited money. |
void |
setItemInterest(double interest)
Sets the interest rate paid (or cost) on the value of deposited items. |
void |
setLoanInterest(double interest)
Sets the interest rate paid (or cost) on loaned out funds as debt. |
double |
totalItemsWorth(java.lang.String depositorName)
Returns the base money value of all items deposited in the given account. |
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 MIN_ITEM_BALANCE_DIVISOR
Method Detail |
---|
double getCoinInterest()
setCoinInterest(double)
void setCoinInterest(double interest)
interest
- the interest rate paid (or cost) on deposited money.getCoinInterest()
double getItemInterest()
setItemInterest(double)
void setItemInterest(double interest)
interest
- the interest rate paid (or cost) on deposited items.getItemInterest()
double getLoanInterest()
setLoanInterest(double)
void setLoanInterest(double interest)
interest
- the interest rate paid (or cost) on loaned money debt.getLoanInterest()
java.lang.String bankChain()
setBankChain(String)
void setBankChain(java.lang.String name)
name
- the bank chain namebankChain()
java.util.List<java.lang.String> getAccountNames()
java.lang.String getBankClientName(MOB mob, Clan.Function func, boolean checked)
mob
- the mob who is trying to deposit or withdraw or list or somethingfunc
- either Clan.Function.WITHDRAW or Clan.FUNCTION.DEPOSIT or LISTchecked
- true if the mob must have clan privileges, false if not.
Clan.Function
MoneyLibrary.DebtItem getDebtInfo(java.lang.String depositorName)
depositorName
- the player or clan name that owes the bank money
MoneyLibrary.DebtItem
void addDepositInventory(java.lang.String depositorName, Item item, Item container)
depositorName
- the account to deposit into, like mob or clan nameitem
- the item to depositcontainer
- the container the item is in, which also needs depositingdelAllDeposits(String)
,
delDepositInventory(String, Item)
,
getBalance(String)
java.util.List<Item> delDepositInventory(java.lang.String depositorName, Item likeItem)
depositorName
- the account to delete from, like mob or clan namelikeItem
- the likeItem to delete
delAllDeposits(String)
,
addDepositInventory(String, Item, Item)
,
getBalance(String)
void delAllDeposits(java.lang.String depositorName)
depositorName
- the account to empty, like mob or clan namedelDepositInventory(String, Item)
,
addDepositInventory(String, Item, Item)
,
getBalance(String)
double getBalance(java.lang.String depositorName)
depositorName
- the account to empty, like mob or clan name
delDepositInventory(String, Item)
,
addDepositInventory(String, Item, Item)
,
delAllDeposits(String)
int numberDeposited(java.lang.String depositorName)
depositorName
- the account to size up, like mob or clan name
getDepositedItems(String)
,
findDepositInventory(String, String)
,
totalItemsWorth(String)
java.util.List<Item> getDepositedItems(java.lang.String depositorName)
depositorName
- the account to return, like mob or clan name
numberDeposited(String)
,
findDepositInventory(String, String)
,
totalItemsWorth(String)
Item findDepositInventory(java.lang.String mob, java.lang.String likeThis)
mob
- the player or clan name of the account to searchlikeThis
- the search string
getDepositedItems(String)
,
numberDeposited(String)
,
totalItemsWorth(String)
double totalItemsWorth(java.lang.String depositorName)
depositorName
- the account to account for, like mob or clan name
getDepositedItems(String)
,
numberDeposited(String)
,
findDepositInventory(String, String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |