java.lang.Cloneable
, CMObject
, java.lang.Comparable<CMObject>
, Contingent
, Economics
, Environmental
, Expireable
, Modifiable
, MsgListener
, ShopKeeper
, StatsAffecting
, Tickable
public interface Banker extends ShopKeeper
ShopKeeper.ShopPrice, ShopKeeper.ViewType
Modifier and Type | Field | Description |
---|---|---|
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.
|
idConverter
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_CLOTHSPINNER, 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
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
Modifier and Type | Method | Description |
---|---|---|
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.
|
boolean |
isAccountName(java.lang.String name) |
Returns true if the given name has an account at this bank.
|
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.
|
copyOf, ID, initializeClass, newInstance
amDestroyed, destroy, isSavable, setSavable
getFinalBudget, getFinalCurrency, getFinalDevalueRate, getFinalIgnoreMask, getFinalInvResetRate, getFinalItemPricingAdjustments, getFinalPrejudiceFactors, getRawBbudget, getRawCurrency, getRawDevalueRate, getRawIgnoreMask, getRawInvResetRate, getRawItemPricingAdjustments, getRawPrejudiceFactors, setBudget, setCurrency, setDevalueRate, setIgnoreMask, setInvResetRate, setItemPricingAdjustments, setPrejudiceFactors
description, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setMiscText, setName, text
expirationDate, setExpirationDate
getSaveStatIndex, getStat, getStatCodes, isStat, setStat
executeMsg, okMessage
addSoldType, doISellThis, getShop, getWhatIsSoldMask, getWhatIsSoldZappermask, isSold, setWhatIsSoldMask, setWhatIsSoldZappermask, storeKeeperString, viewFlags
affectCharState, affectCharStats, affectPhyStats
getTickStatus, name, tick
static final double MIN_ITEM_BALANCE_DIVISOR
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()
boolean isAccountName(java.lang.String name)
name
- the name to look forjava.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 moneyMoneyLibrary.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 deletedelAllDeposits(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 namedelDepositInventory(String, Item)
,
addDepositInventory(String, Item, Item)
,
delAllDeposits(String)
int numberDeposited(java.lang.String depositorName)
depositorName
- the account to size up, like mob or clan namegetDepositedItems(String)
,
findDepositInventory(String, String)
,
totalItemsWorth(String)
java.util.List<Item> getDepositedItems(java.lang.String depositorName)
depositorName
- the account to return, like mob or clan namenumberDeposited(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 stringgetDepositedItems(String)
,
numberDeposited(String)
,
totalItemsWorth(String)
double totalItemsWorth(java.lang.String depositorName)
depositorName
- the account to account for, like mob or clan namegetDepositedItems(String)
,
numberDeposited(String)
,
findDepositInventory(String, String)