|
|||||||||
| 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_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 | |
|---|---|
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 |
void |
setWhatIsSold(int newSellCode)
Sets the ShopKeeper DEAL_* constant 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. |
int |
whatIsSold()
Returns the ShopKeeper DEAL_* constant describing what is sold or bought by this ShopKeeper |
| 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 |
| 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 java.lang.String[] DEAL_DESCS
| Method Detail |
|---|
CoffeeShop getShop()
CoffeeShopint whatIsSold()
ShopKeepervoid setWhatIsSold(int newSellCode)
newSellCode - the dealer type constantShopKeeperjava.lang.String storeKeeperString()
whatIsSold()boolean doISellThis(Environmental thisThang)
thisThang - the item to determine if the shopkeeper deals in
whatIsSold()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||