|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ShopKeeper
An interface for objects capable of being a shopkeeper, usually a MOB or an Ability.
| Nested Class Summary | |
|---|---|
static class |
ShopKeeper.ShopPrice
This class represents a given price for a given item in the shopkeepers inventory. |
| Field Summary | |
|---|---|
static int |
DEAL_ALCHEMIST
shopkeeper type constant, means they buy potions |
static int |
DEAL_ANYTECHNOLOGY
shopkeeper type constant, means they buy electronics items |
static int |
DEAL_ANYTHING
shopkeeper type constant, means they buy anything |
static int |
DEAL_ARMOR
shopkeeper type constant, means they buy armor |
static int |
DEAL_AUCTIONEER
shopkeeper type constant, means they handle auctions, and implement the Auctioneer interface |
static int |
DEAL_BANKER
shopkeeper type constant, means they are a banker for players, and implement the Banker interface |
static int |
DEAL_BUTCHER
shopkeeper type constant, means they buy and sell raw meats |
static int |
DEAL_CASTER
shopkeeper type constant, means they cast spells they sell on players |
static int |
DEAL_CLANBANKER
shopkeeper type constant, means they are a banker for clans, and implement the Banker interface |
static int |
DEAL_CLANDSELLER
shopkeeper type constant, means they buy and sell property in their area to clans |
static int |
DEAL_CLANPOSTMAN
shopkeeper type constant, means they handle mail for clans, and implement the Postman interface |
static int[][] |
DEAL_CONFLICTS
shopkeeper integer sets denoting the DEAL_* constants which conflict with each other |
static int |
DEAL_CSHIPSELLER
shopkeeper type constant, means they buy and sell SpaceShip areas to clans |
static java.lang.String[] |
DEAL_DESCS
A list of strings describing the DEAL_* constants, in their numeric value order. |
static int |
DEAL_FOODSELLER
shopkeeper type constant, means they buy and sell raw foodstuff |
static int |
DEAL_GENERAL
shopkeeper type constant, means they buy items not covered by other constants |
static int |
DEAL_GROWER
shopkeeper type constant, means they buy and sell raw non-meat foodstuffs |
static int |
DEAL_HIDESELLER
shopkeeper type constant, means they buy raw leathers and hides |
static int |
DEAL_INNKEEPER
shopkeeper type constant, means they sell InnKeys |
static int |
DEAL_INVENTORYONLY
shopkeeper type constant, means they buy only what they are told to sell |
static int |
DEAL_JEWELLER
shopkeeper type constant, means they buy jewelry |
static int |
DEAL_LANDSELLER
shopkeeper type constant, means they buy and sell property in their area to players |
static int |
DEAL_LEATHER
shopkeeper type constant, means they buy leather stuff |
static int |
DEAL_LUMBERER
shopkeeper type constant, means they buy raw lumber |
static int |
DEAL_MAGIC
shopkeeper type constant, means they buy magic items |
static int |
DEAL_METALSMITH
shopkeeper type constant, means they buy raw metals |
static int |
DEAL_PETS
shopkeeper type constant, means they buy pets |
static int |
DEAL_POSTMAN
shopkeeper type constant, means they handle mail for players, and implement the Postman interface |
static int |
DEAL_SHIPSELLER
shopkeeper type constant, means they buy and sell SpaceShip areas to players |
static int |
DEAL_SLAVES
shopkeeper type constant, means they buy and sell intelligent mobs as slaves |
static int |
DEAL_STONEYARDER
shopkeeper type constant, means they buy raw stones |
static int |
DEAL_TRAINER
shopkeeper type constant, means they train players in skills they sell |
static int |
DEAL_WEAPONS
shopkeeper type constant, means they buy weapons |
| Method Summary | |
|---|---|
void |
addSoldType(int dealType)
Adds the ShopKeeper DEAL_* constants describing what is sold or bought by this ShopKeeper to the existing shopkeeper mask. |
boolean |
doISellThis(Environmental thisThang)
Returns whether this ShopKeeper deals in the type of item passed in. |
CoffeeShop |
getShop()
the CoffeeShop method to access the shopkeepers store of goods |
long |
getWhatIsSoldMask()
Returns the ShopKeeper DEAL_* mask describing what is sold or bought by this ShopKeeper |
boolean |
isSold(int deal)
Returns whether the given type of good is sold by this shopkeeper. |
void |
setWhatIsSoldMask(long newSellCode)
Sets the encoded ShopKeeper DEAL_* constants describing what is sold or bought by this ShopKeeper |
java.lang.String |
storeKeeperString()
Based on the value of this ShopKeepers whatIsSold() method, this will return a displayable string describing that type. |
| 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, maxRange, minRange, miscTextFormat, name, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, 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 int DEAL_ANYTHING
static final int DEAL_GENERAL
static final int DEAL_ARMOR
static final int DEAL_MAGIC
static final int DEAL_WEAPONS
static final int DEAL_PETS
static final int DEAL_LEATHER
static final int DEAL_INVENTORYONLY
static final int DEAL_TRAINER
static final int DEAL_CASTER
static final int DEAL_JEWELLER
static final int DEAL_ALCHEMIST
static final int DEAL_BANKER
static final int DEAL_LANDSELLER
static final int DEAL_ANYTECHNOLOGY
static final int DEAL_CLANDSELLER
static final int DEAL_FOODSELLER
static final int DEAL_BUTCHER
static final int DEAL_GROWER
static final int DEAL_HIDESELLER
static final int DEAL_LUMBERER
static final int DEAL_METALSMITH
static final int DEAL_STONEYARDER
static final int DEAL_CLANBANKER
static final int DEAL_INNKEEPER
static final int DEAL_SHIPSELLER
static final int DEAL_CSHIPSELLER
static final int DEAL_SLAVES
static final int DEAL_POSTMAN
static final int DEAL_CLANPOSTMAN
static final int DEAL_AUCTIONEER
static final int[][] DEAL_CONFLICTS
static final java.lang.String[] DEAL_DESCS
| Method Detail |
|---|
CoffeeShop getShop()
CoffeeShoplong getWhatIsSoldMask()
DEAL_DESCS,
return the dealer type constants to the 2nd power, shifted 8 bits leftboolean isSold(int deal)
deal - the ShopKeeper DEAL_* constant describing what is sold or bought by this ShopKeeper
DEAL_DESCS,
getWhatIsSoldMask()void setWhatIsSoldMask(long newSellCode)
newSellCode - the dealer type constants to the 2nd power, shifted 8 bits leftDEAL_DESCS,
addSoldType(int)void addSoldType(int dealType)
dealType - the ShopKeeper DEAL_* constants describing what is sold or bought by this ShopKeeperDEAL_DESCS,
isSold(int)java.lang.String storeKeeperString()
isSold(int)boolean doISellThis(Environmental thisThang)
thisThang - the item to determine if the shopkeeper deals in
isSold(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||