|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ogs.core.Experience
A utility class for calculating experience points, levels, and other attributes that depend on experience. Experience points and experience levels are represented as integer values but never have negative values.
Method Summary | |
static String |
formatLevel(int level)
Format a string for a given experience level. |
static int |
getAverageAttack(int xpLevel)
Calculate the base attack bonus at a given experience level. |
static int |
getLevel(int xpPoints)
Calculate the level equivalent to a given number of points. |
static int |
getPoints(int xpLevel)
Calculate the points required for a given level. |
static int |
getStrongAttack(int xpLevel)
Calculate the base attack bonus at a given experience level. |
static int |
getWeakAttack(int xpLevel)
Calculate the base attack bonus at a given experience level. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static int getLevel(int xpPoints)
xpPoints
- Number of experience points.
public static int getPoints(int xpLevel)
xpLevel
- An experience level.
public static int getWeakAttack(int xpLevel)
public static int getAverageAttack(int xpLevel)
public static int getStrongAttack(int xpLevel)
public static String formatLevel(int level)
|
OGS Java API Spec | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |