|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Abilities.StdAbility
com.planet_ink.coffee_mud.Abilities.Common.CommonSkill
com.planet_ink.coffee_mud.Abilities.Common.Merchant
public class Merchant
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.core.interfaces.ShopKeeper |
|---|
ShopKeeper.ShopPrice |
| Field Summary | |
|---|---|
protected CoffeeShop |
shop
|
| Fields inherited from class com.planet_ink.coffee_mud.Abilities.Common.CommonSkill |
|---|
aborted, activityRoom, bundling, displayText, helping, helpingAbility, playSound, tickUp, verb, yield |
| Fields inherited from class com.planet_ink.coffee_mud.Abilities.StdAbility |
|---|
affected, amDestroyed, canBeUninvoked, empty, envStats, expertise, invoker, isAnAutoEffect, lastCastHelp, miscText, proficiency, savable, tickDown, unInvoked |
| 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_BUTCHER, DEAL_CASTER, DEAL_CLANBANKER, DEAL_CLANDSELLER, DEAL_CLANPOSTMAN, DEAL_CSHIPSELLER, DEAL_DESCS, DEAL_FOODSELLER, DEAL_GENERAL, DEAL_GROWER, DEAL_HIDESELLER, DEAL_INNKEEPER, DEAL_INVENTORYONLY, DEAL_JEWELLER, DEAL_LANDSELLER, DEAL_LEATHER, DEAL_LUMBERER, DEAL_MAGIC, DEAL_METALSMITH, DEAL_PETS, DEAL_POSTMAN, DEAL_SHIPSELLER, DEAL_SLAVES, DEAL_STONEYARDER, DEAL_TRAINER, DEAL_WEAPONS |
| Constructor Summary | |
|---|---|
Merchant()
|
|
| Method Summary | |
|---|---|
void |
affectEnvStats(Environmental E,
EnvStats affectableStats)
This method is called by the recoverEnvStats() method on other Environmental objects. |
boolean |
autoInvocation(MOB mob)
An autoinvocating ability is an ability which affects the mob just by having learned the ability. |
java.lang.String |
budget()
Returns a description of the buying budget of the shopkeeper. |
protected int |
canAffectCode()
Designates whether, when used as a property/effect, what sort of objects this ability can affect. |
boolean |
canBeUninvoked()
Whether this skill is allowed to be uninvoked. |
boolean |
canPossiblyVend(Environmental E,
Environmental what)
|
protected int |
canTargetCode()
Designates whether, when invoked as a skill, what sort of objects this ability can effectively target. |
int |
classificationCode()
Returns a bitmap describing the general classification of the skill (spell, skill, chant, or property, etc) and its domain. |
MOB |
deriveMerchant(MOB roomHelper)
|
java.lang.String |
devalueRate()
Returns a string describing the percentage in the drop of the price at which this ShopKeeper will buy back items based on the number already in his inventory. |
boolean |
doISellThis(Environmental thisThang)
Returns whether this ShopKeeper deals in the type of item passed in. |
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
java.lang.String |
finalBudget()
Returns a description of the buying budget of the shopkeeper. |
java.lang.String |
finalDevalueRate()
Returns a string describing the percentage in the drop of the price at which this ShopKeeper will buy back items based on the number already in his inventory. |
java.lang.String |
finalIgnoreMask()
Returns the mask used to determine if a customer is ignored by the ShopKeeper. |
int |
finalInvResetRate()
Returns the number of ticks between totally resetting this ShopKeepers inventory back to what it was. |
java.lang.String[] |
finalItemPricingAdjustments()
A string set describing how pricing for this ShopKeeper will differ based on item masks The format for each string is a floating point number followers by a space and a zapper mask |
java.lang.String |
finalPrejudiceFactors()
A string describing how pricing for this ShopKeeper will differ based on customer attributes such as race. |
CoffeeShop |
getShop()
the CoffeeShop method to access the shopkeepers store of goods |
protected Area |
getStartArea()
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
java.lang.String |
ignoreMask()
Returns the mask used to determine if a customer is ignored by the ShopKeeper. |
protected int |
iniPracticesRequired()
|
protected int |
iniTrainsRequired()
|
boolean |
invoke(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
boolean auto,
int asLevel)
This method is called when a player or the system invokes this skill, casts this spell, etc. |
int |
invResetRate()
Returns the number of ticks between totally resetting this ShopKeepers inventory back to what it was. |
boolean |
isAutoInvoked()
An autoinvocating ability is an ability which affects the mob just by having learned the ability. |
java.lang.String[] |
itemPricingAdjustments()
A string set describing how pricing for this ShopKeeper will differ based on item masks The format for each string is a floating point number followers by a space and a zapper mask |
java.lang.String |
name()
The displayable name of this object. |
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
int |
overrideMana()
|
java.lang.String |
prejudiceFactors()
A string describing how pricing for this ShopKeeper will differ based on customer attributes such as race. |
boolean |
putUpForSale(MOB source,
MOB merchantM,
Environmental tool)
|
void |
setBudget(java.lang.String factors)
Sets a description of the buying budget of the shopkeeper. |
void |
setDevalueRate(java.lang.String factors)
Sets a string describing the percentage in the drop of the price at which this ShopKeeper will buy back items based on the number already in his inventory. |
void |
setIgnoreMask(java.lang.String factors)
Sets the mask used to determine if a customer is ignored by the ShopKeeper. |
void |
setInvResetRate(int ticks)
Sets the number of ticks between totally resetting this ShopKeepers inventory back to what it was. |
void |
setItemPricingAdjustments(java.lang.String[] factors)
Sets the string set describing how pricing for this ShopKeeper will differ based on item masks The format for each string is a floating point number followers by a space and a zapper mask |
void |
setMiscText(java.lang.String text)
For objects which have false for their isGeneric method, this is used to set any internally coded strings to change the nature or behavior of the object. |
void |
setPrejudiceFactors(java.lang.String factors)
Sets the string describing how pricing for this ShopKeeper will differ based on customer attributes such as race. |
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. |
java.lang.String |
text()
For objects which have false for their isGeneric method, this is used to set any internally coded strings to change the nature or behavior of the object. |
java.lang.String[] |
triggerStrings()
A set of the command strings the user types to access this command when it is listed as a skill ability. |
int |
whatIsSold()
Returns the ShopKeeper DEAL_* constant describing what is sold or bought by this ShopKeeper |
| Methods inherited from class com.planet_ink.coffee_mud.Abilities.Common.CommonSkill |
|---|
abilityCode, abstractQuality, addedTickTime, allowedWhileMounted, commonEmote, commonTell, commonTell, confirmPossibleMaterialLocation, displayText, getDuration, getRequiredFire, iniPracticesToPractice, lookingFor, lookingFor, setAbilityCode, supportedResourceString, tick, unInvoke, usageCost, usageType, xlevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CoffeeShop shop
| Constructor Detail |
|---|
public Merchant()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class CommonSkillpublic java.lang.String name()
Environmental
name in interface Environmentalname in interface Tickablename in class CommonSkillEnvironmental.Name()public java.lang.String[] triggerStrings()
Ability
triggerStrings in interface AbilitytriggerStrings in class CommonSkillAbility.putInCommandlist()public int overrideMana()
overrideMana in class StdAbilitypublic boolean isAutoInvoked()
Ability
isAutoInvoked in interface AbilityisAutoInvoked in class StdAbilitypublic boolean canBeUninvoked()
Ability
canBeUninvoked in interface AbilitycanBeUninvoked in class StdAbilityAbility.makeNonUninvokable()protected int iniTrainsRequired()
iniTrainsRequired in class CommonSkillprotected int iniPracticesRequired()
iniPracticesRequired in class CommonSkillprotected int canAffectCode()
StdAbility
canAffectCode in class CommonSkillAbilityprotected int canTargetCode()
StdAbility
canTargetCode in class CommonSkillAbilitypublic int classificationCode()
Ability
classificationCode in interface AbilityclassificationCode in class CommonSkillAbilitypublic CoffeeShop getShop()
ShopKeeper
getShop in interface ShopKeeperCoffeeShoppublic java.lang.String text()
Environmental
text in interface Environmentaltext in class StdAbilitypublic java.lang.String budget()
Economics
budget in interface Economicspublic void setBudget(java.lang.String factors)
Economics
setBudget in interface Economicsfactors - the string for the shopkeepers buying budgetpublic java.lang.String devalueRate()
Economics
devalueRate in interface Economicspublic void setDevalueRate(java.lang.String factors)
Economics
setDevalueRate in interface Economicsfactors - the price dropping percentage rule for this shopkeeperpublic int invResetRate()
Economics
invResetRate in interface Economicspublic void setInvResetRate(int ticks)
Economics
setInvResetRate in interface Economicsticks - the number of ticks between total resets of inventorypublic void setMiscText(java.lang.String text)
Environmental
setMiscText in interface EnvironmentalsetMiscText in class StdAbilitytext - either an open internal text string, or XML
public void affectEnvStats(Environmental E,
EnvStats affectableStats)
StatsAffecting
affectEnvStats in interface StatsAffectingaffectEnvStats in class StdAbilityE - the host of the EnvStats object being affectedaffectableStats - the particular EnvStats object being affectedEnvStats,
Environmental,
Environmental.baseEnvStats(),
Environmental.envStats(),
Environmental.recoverEnvStats()public int whatIsSold()
ShopKeeper
whatIsSold in interface ShopKeeperShopKeeperpublic void setWhatIsSold(int newSellCode)
ShopKeeper
setWhatIsSold in interface ShopKeepernewSellCode - the dealer type constantShopKeeperpublic java.lang.String storeKeeperString()
ShopKeeper
storeKeeperString in interface ShopKeeperShopKeeper.whatIsSold()public boolean doISellThis(Environmental thisThang)
ShopKeeper
doISellThis in interface ShopKeeperthisThang - the item to determine if the shopkeeper deals in
ShopKeeper.whatIsSold()public java.lang.String prejudiceFactors()
Economics
prejudiceFactors in interface Economicspublic void setPrejudiceFactors(java.lang.String factors)
Economics
setPrejudiceFactors in interface Economicsfactors - the string describing price prejudicingpublic java.lang.String ignoreMask()
Economics
ignoreMask in interface EconomicsMaskingLibrarypublic void setIgnoreMask(java.lang.String factors)
Economics
setIgnoreMask in interface Economicsfactors - the mask to useMaskingLibrarypublic java.lang.String[] itemPricingAdjustments()
Economics
itemPricingAdjustments in interface Economicspublic void setItemPricingAdjustments(java.lang.String[] factors)
Economics
setItemPricingAdjustments in interface Economicsfactors - the string describing price prejudicingprotected Area getStartArea()
public int finalInvResetRate()
Economics
finalInvResetRate in interface Economicspublic java.lang.String finalPrejudiceFactors()
Economics
finalPrejudiceFactors in interface Economicspublic java.lang.String finalIgnoreMask()
Economics
finalIgnoreMask in interface EconomicsMaskingLibrarypublic java.lang.String[] finalItemPricingAdjustments()
Economics
finalItemPricingAdjustments in interface Economicspublic java.lang.String finalBudget()
Economics
finalBudget in interface Economicspublic java.lang.String finalDevalueRate()
Economics