public class Attributes
extends java.lang.Object
Constructor and Description |
---|
Attributes(Attribute type,
int xp,
int level,
User u)
Creates new attributes instance
|
Modifier and Type | Method and Description |
---|---|
int |
addXp(int xp) |
int |
getLevel() |
static float |
getLuck(int level)
Gets luck percent in decimal form based on a level.
|
int |
getMaxLevel() |
java.lang.String |
getName()
This gets the type name.
|
static float |
getSpeedEffect(int level)
Gets a speed effect based on a level.
|
static float |
getSpeedEffectActual(int level) |
static float |
getStaminaBadPotionMultiplier(int level) |
static float |
getStaminaEffect(int level)
Gets a stamina effect rate based on a level.
|
static float |
getStaminaGoodPotionMultiplier(int level) |
static float |
getStaminaRemove(int level) |
static float |
getStrengthDamageEffect(int level)
Gets the damage multiplier based on a level.
|
static int |
getStrengthHasteEffect(int level)
Gets the haste effect based on a level.
|
static float |
getToughnessHealthEffect(int level)
Get the toughness health effect based on a level.
|
static float |
getToughnessRegenRate(int level)
Gets the toughness regain rate based on a level.
|
Attribute |
getType() |
int |
getXp() |
int |
getXPToNext() |
boolean |
isMax() |
void |
resetXP() |
void |
setLevel(int level) |
void |
setMax(boolean max) |
int |
setXp(int xp)
Sets xp.
|
public boolean isMax()
public void setMax(boolean max)
public int getXPToNext()
public java.lang.String getName()
public int addXp(int xp)
public int getXp()
public int setXp(int xp)
xp
- public int getLevel()
public void setLevel(int level)
public Attribute getType()
public static float getStrengthDamageEffect(int level)
level
- public static int getStrengthHasteEffect(int level)
level
- public static float getToughnessRegenRate(int level)
level
- public static float getToughnessHealthEffect(int level)
level
- public static float getSpeedEffect(int level)
level
- public static float getSpeedEffectActual(int level)
public static float getStaminaEffect(int level)
level
- public static float getLuck(int level)
level
- public int getMaxLevel()
public void resetXP()
public static float getStaminaGoodPotionMultiplier(int level)
public static float getStaminaBadPotionMultiplier(int level)
public static float getStaminaRemove(int level)