|
|||||||||
| 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
| Constructor Summary | |
|---|---|
CoffeeLevels()
|
|
| Method Summary | |
|---|---|
int |
adjustedExperience(MOB mob,
MOB victim,
int amount)
|
java.lang.StringBuffer |
baseLevelAdjuster(MOB mob,
int adjuster)
|
MOB |
fillOutMOB(CharClass C,
int level)
This method fills in combat and rejuvination 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 rejuvination related stats for the given mob of their current base class at the given level. |
void |
gainExperience(MOB mob,
MOB victim,
java.lang.String homageMessage,
int amount,
boolean quiet)
Called whenever a player actually gains any experience. |
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 |
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. |
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)
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
void |
level(MOB mob)
|
void |
loseExperience(MOB mob,
int amount)
Called whenever a member of this class loses any experience. |
boolean |
postExperience(MOB mob,
MOB victim,
java.lang.String homage,
int amount,
boolean quiet)
|
void |
unLevel(MOB mob)
|
| Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary |
|---|
activate, compareTo, copyOf, getSupportThread, initializeClass, newInstance, propertiesLoaded, shutdown |
| 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, getSupportThread, propertiesLoaded, shutdown |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public CoffeeLevels()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdLibrarypublic int getManaBonusNextLevel(MOB mob)
public int getLevelMana(MOB mob)
ExpLevelLibrary
getLevelMana in interface ExpLevelLibrarymob - the mob who would be this class
public int getAttackBonusNextLevel(MOB mob)
public int getLevelAttack(MOB mob)
ExpLevelLibrary
getLevelAttack in interface ExpLevelLibrarymob - the mob who would be this class
public int getLevelMOBArmor(MOB mob)
ExpLevelLibrary
getLevelMOBArmor in interface ExpLevelLibrarymob - the mob who would be this class
public int getLevelMOBDamage(MOB mob)
ExpLevelLibrary
getLevelMOBDamage in interface ExpLevelLibrarymob - the mob who would be this class
public double getLevelMOBSpeed(MOB mob)
ExpLevelLibrary
getLevelMOBSpeed in interface ExpLevelLibrarymob - the mob who would be this class
public int getMoveBonusNextLevel(MOB mob)
public int getLevelMove(MOB mob)
ExpLevelLibrary
getLevelMove in interface ExpLevelLibrarymob - the mob who would be this class
public int getPlayerHPBonusNextLevel(MOB mob)
public int getPlayerHitPoints(MOB mob)
ExpLevelLibrary
getPlayerHitPoints in interface ExpLevelLibrarymob - the mob who would be this class
public MOB fillOutMOB(CharClass C,
int level)
ExpLevelLibrary
fillOutMOB in interface ExpLevelLibraryC - the class to use.level - the level of the mob
public MOB fillOutMOB(MOB mob,
int level)
ExpLevelLibrary
fillOutMOB in interface ExpLevelLibrarymob - the mob to fill out, or nulllevel - the level of the mob
public java.lang.StringBuffer baseLevelAdjuster(MOB mob,
int adjuster)
baseLevelAdjuster in interface ExpLevelLibrarypublic void unLevel(MOB mob)
unLevel in interface ExpLevelLibrary
public void loseExperience(MOB mob,
int amount)
ExpLevelLibrary
loseExperience in interface ExpLevelLibrarymob - the mob to take experience away fromamount - the amount of experience to take awayExpLevelLibrary.unLevel(MOB)
public boolean postExperience(MOB mob,
MOB victim,
java.lang.String homage,
int amount,
boolean quiet)
postExperience in interface ExpLevelLibrarypublic int getLevelExperience(int level)
ExpLevelLibrary
getLevelExperience in interface ExpLevelLibrarylevel - the level to base the exp on
public void level(MOB mob)
level in interface ExpLevelLibrary
public int adjustedExperience(MOB mob,
MOB victim,
int amount)
adjustedExperience in interface ExpLevelLibrary
public void gainExperience(MOB mob,
MOB victim,
java.lang.String homageMessage,
int amount,
boolean quiet)
ExpLevelLibrary
gainExperience in interface ExpLevelLibrarymob - 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 handleExperienceChange(CMMsg msg)
handleExperienceChange in interface ExpLevelLibrary
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||