|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Libraries.StdLibrary
com.planet_ink.coffee_mud.Libraries.CoffeeLevels
public class CoffeeLevels
Field Summary |
---|
Fields inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary |
---|
isDebugging, name, serviceClient, tickStatus |
Constructor Summary | |
---|---|
CoffeeLevels()
|
Method Summary | |
---|---|
int |
adjustedExperience(MOB mob,
MOB victim,
int amount)
|
protected void |
checkLevelDown(MOB mob)
|
protected void |
checkLevelGain(MOB mob)
|
Command |
deferCommandCheck(MOB mob,
Command C,
java.util.List<java.lang.String> cmds)
|
java.lang.String |
doBaseLevelAdjustment(MOB mob,
int adjuster)
|
protected void |
ensureMaxDeferredXP(MOB mob,
PlayerStats pStats)
|
protected void |
ensureMaxRPXP(MOB mob,
PlayerStats pStats)
|
MOB |
fillOutMOB(CharClass C,
int level)
This method fills in combat and rejuvenation related stats for the given mob of the given class at the given level. |
MOB |
fillOutMOB(MOB mob,
int level)
This method fills in combat and rejuvenation related stats for the given mob of their current base class at the given level. |
protected boolean |
fixMobStatsIfNecessary(MOB mob,
int direction)
|
protected int |
gainClanExperience(MOB mob,
int amount)
|
void |
gainExperience(MOB mob,
MOB victim,
java.lang.String homageMessage,
int amount,
boolean quiet)
Called whenever a player actually gains any experience. |
protected int |
gainLeigeExperience(MOB mob,
int amount,
boolean quiet)
|
void |
gainRPExperience(MOB mob,
MOB target,
java.lang.String homageMessage,
int amount,
boolean quiet)
|
int |
getAttackBonusNextLevel(MOB mob)
|
int |
getLevelAttack(MOB mob)
Returns the amount of combat prowess the given mob would have being their current base class. |
int |
getLevelExperience(int level)
Returns how much experience a player must have to be the given level. |
int |
getLevelExperienceJustThisLevel(int level)
Returns how much experience a player must gain at this level to advance to the next. |
int |
getLevelMana(MOB mob)
Returns the amount of mana the given mob would have being their current base class. |
int |
getLevelMOBArmor(MOB mob)
Returns the armor rating the given mob would have being their current base class. |
int |
getLevelMOBDamage(MOB mob)
Returns the amount of damage per hit the given mob would have being their current base class. |
double |
getLevelMOBSpeed(MOB mob)
Returns the number of attacks the given mob would have being their current base class. |
double[] |
getLevelMoneyRange(MOB mob)
Returns the range of money the given mob would have being their current base class. |
int |
getLevelMove(MOB mob)
Returns the amount of movement the given mob would have being their current base class. |
int |
getManaBonusNextLevel(MOB mob)
|
int |
getMoveBonusNextLevel(MOB mob)
|
int |
getPlayerHitPoints(MOB mob)
Returns the amount of hp the given player would have being their current base class. |
int |
getPlayerHPBonusNextLevel(MOB mob)
|
void |
handleExperienceChange(CMMsg msg)
|
void |
handleRPExperienceChange(CMMsg msg)
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
boolean |
isFilledOutMOB(MOB mob)
|
void |
level(MOB mob)
|
protected int |
loseClanExperience(MOB mob,
int amount)
|
void |
loseExperience(MOB mob,
int amount)
Called whenever a member of this class loses any experience. |
protected int |
loseLeigeExperience(MOB mob,
int amount)
|
void |
loseRPExperience(MOB mob,
int amount)
|
boolean |
postExperience(MOB mob,
MOB victim,
java.lang.String homage,
int amount,
boolean quiet)
|
boolean |
postExperienceToAllAboard(Physical possibleShip,
int amount)
If the given item is a boardable, this method will post the given amount of experience to all abord. |
boolean |
postRPExperience(MOB mob,
MOB target,
java.lang.String homage,
int amount,
boolean quiet)
|
void |
propertiesLoaded()
This method is called whenever system properties are altered by the user. |
void |
unLevel(MOB mob)
|
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary |
---|
activate, checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, initializeClass, L, name, newInstance, setThreadStatus, shutdown, tick |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CMLibrary |
---|
activate, getServiceClient, L, shutdown |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, initializeClass, name, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public CoffeeLevels()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdLibrary
public int getManaBonusNextLevel(MOB mob)
public int getLevelMana(MOB mob)
ExpLevelLibrary
getLevelMana
in interface ExpLevelLibrary
mob
- the mob who would be this class
public int getAttackBonusNextLevel(MOB mob)
public int getLevelAttack(MOB mob)
ExpLevelLibrary
getLevelAttack
in interface ExpLevelLibrary
mob
- the mob who would be this class
public int getLevelMOBArmor(MOB mob)
ExpLevelLibrary
getLevelMOBArmor
in interface ExpLevelLibrary
mob
- the mob who would be this class
public int getLevelMOBDamage(MOB mob)
ExpLevelLibrary
getLevelMOBDamage
in interface ExpLevelLibrary
mob
- the mob who would be this class
public double getLevelMOBSpeed(MOB mob)
ExpLevelLibrary
getLevelMOBSpeed
in interface ExpLevelLibrary
mob
- the mob who would be this class
public int getMoveBonusNextLevel(MOB mob)
public int getLevelMove(MOB mob)
ExpLevelLibrary
getLevelMove
in interface ExpLevelLibrary
mob
- the mob who would be this class
public int getPlayerHPBonusNextLevel(MOB mob)
public int getPlayerHitPoints(MOB mob)
ExpLevelLibrary
getPlayerHitPoints
in interface ExpLevelLibrary
mob
- the mob who would be this class
public MOB fillOutMOB(CharClass C, int level)
ExpLevelLibrary
fillOutMOB
in interface ExpLevelLibrary
C
- the class to use.level
- the level of the mob
public boolean isFilledOutMOB(MOB mob)
public MOB fillOutMOB(MOB mob, int level)
ExpLevelLibrary
fillOutMOB
in interface ExpLevelLibrary
mob
- the mob to fill out, or nulllevel
- the level of the mob
public double[] getLevelMoneyRange(MOB mob)
ExpLevelLibrary
getLevelMoneyRange
in interface ExpLevelLibrary
mob
- the mob who would be this class
public java.lang.String doBaseLevelAdjustment(MOB mob, int adjuster)
doBaseLevelAdjustment
in interface ExpLevelLibrary
public void unLevel(MOB mob)
unLevel
in interface ExpLevelLibrary
public void loseExperience(MOB mob, int amount)
ExpLevelLibrary
loseExperience
in interface ExpLevelLibrary
mob
- the mob to take experience away fromamount
- the amount of experience to take awayExpLevelLibrary.unLevel(MOB)
protected void checkLevelDown(MOB mob)
protected int loseClanExperience(MOB mob, int amount)
protected int loseLeigeExperience(MOB mob, int amount)
public void loseRPExperience(MOB mob, int amount)
loseRPExperience
in interface ExpLevelLibrary
protected int gainClanExperience(MOB mob, int amount)
protected int gainLeigeExperience(MOB mob, int amount, boolean quiet)
protected void checkLevelGain(MOB mob)
public void gainExperience(MOB mob, MOB victim, java.lang.String homageMessage, int amount, boolean quiet)
ExpLevelLibrary
gainExperience
in interface ExpLevelLibrary
mob
- the mob to distribute experience tovictim
- the mob killed, if any, to cause the experience gainhomageMessage
- the name, if any, of another mob whose gain experience is
causing this gainamount
- the amount of experience to gainquiet
- true if no messages should be givenExpLevelLibrary.level(MOB)
public void gainRPExperience(MOB mob, MOB target, java.lang.String homageMessage, int amount, boolean quiet)
gainRPExperience
in interface ExpLevelLibrary
public boolean postExperience(MOB mob, MOB victim, java.lang.String homage, int amount, boolean quiet)
postExperience
in interface ExpLevelLibrary
public boolean postRPExperience(MOB mob, MOB target, java.lang.String homage, int amount, boolean quiet)
postRPExperience
in interface ExpLevelLibrary
public int getLevelExperience(int level)
ExpLevelLibrary
getLevelExperience
in interface ExpLevelLibrary
level
- the level to base the exp on
public int getLevelExperienceJustThisLevel(int level)
ExpLevelLibrary
getLevelExperienceJustThisLevel
in interface ExpLevelLibrary
level
- the level to check at
public void level(MOB mob)
level
in interface ExpLevelLibrary
protected void ensureMaxDeferredXP(MOB mob, PlayerStats pStats)
protected void ensureMaxRPXP(MOB mob, PlayerStats pStats)
protected boolean fixMobStatsIfNecessary(MOB mob, int direction)
public int adjustedExperience(MOB mob, MOB victim, int amount)
adjustedExperience
in interface ExpLevelLibrary
public void handleExperienceChange(CMMsg msg)
handleExperienceChange
in interface ExpLevelLibrary
public Command deferCommandCheck(MOB mob, Command C, java.util.List<java.lang.String> cmds)
deferCommandCheck
in interface ExpLevelLibrary
public void handleRPExperienceChange(CMMsg msg)
handleRPExperienceChange
in interface ExpLevelLibrary
public boolean postExperienceToAllAboard(Physical possibleShip, int amount)
ExpLevelLibrary
postExperienceToAllAboard
in interface ExpLevelLibrary
possibleShip
- the ship to give experience toamount
- amount of experience to give to each person found
public void propertiesLoaded()
CMLibrary
propertiesLoaded
in interface CMLibrary
propertiesLoaded
in class StdLibrary
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |