public class Attributes
extends java.lang.Object
Constructor and Description |
---|
Attributes()
Attributes constructor
|
Attributes(int str,
int con,
int dex,
int inte,
int wis)
Attributes constructor
|
Attributes(java.lang.String attLine)
Attributes constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addCon() |
void |
addCon(int value) |
void |
addDex() |
void |
addDex(int value) |
void |
addInt() |
void |
addInt(int value) |
void |
addStr() |
void |
addStr(int value) |
void |
addWis() |
void |
addWis(int value) |
boolean |
compareTo(Attributes otherAtt)
Compares this attributes to other some attributes
|
int |
getBasicHit()
Returns basic hit value
|
int |
getBasicSpell() |
int |
getCon() |
float |
getConcentration()
Returns concentration value
|
int |
getDex() |
float |
getDodge()
Returns dodge chance
|
float |
getDualwieldPenalty() |
float |
getHaste()
Returns haste value(reduces skills cooldown)
|
int |
getHealth()
Returns value of health points from this attributes
|
java.lang.String |
getInfo() |
int |
getInt() |
int |
getMagicka()
Returns value of magicka points from this attributes
|
float |
getMainHitChance() |
float |
getOffHitChance() |
Resistance |
getResistances()
Returns resistance
|
int |
getSpellPower()
Returns spell power value
|
int |
getStr() |
int |
getWis() |
void |
mod(Attributes attributes)
Adds specified attributes to this attributes
|
void |
modAtt(AttributeType type,
int value)
Modifies specified attribute
|
Attributes |
nagative()
Returns new attributes object with all attributes negative
|
java.lang.String |
toString() |
public Attributes()
public Attributes(int str, int con, int dex, int inte, int wis)
str
- Strength valuecon
- Constitution valuedex
- Dexterity valueinte
- Intelligence valuewis
- Wisdom valuepublic Attributes(java.lang.String attLine)
attLine
- Strength valuepublic int getHealth()
public int getMagicka()
public int getBasicHit()
public int getBasicSpell()
public float getDodge()
public float getHaste()
public float getConcentration()
public int getSpellPower()
public float getDualwieldPenalty()
public float getMainHitChance()
public float getOffHitChance()
public Resistance getResistances()
public Attributes nagative()
public int getStr()
public int getCon()
public int getDex()
public int getInt()
public int getWis()
public void addStr()
public void addStr(int value)
public void addCon()
public void addCon(int value)
public void addDex()
public void addDex(int value)
public void addInt()
public void addInt(int value)
public void addWis()
public void addWis(int value)
public void mod(Attributes attributes)
attributes
- Attributes objectpublic void modAtt(AttributeType type, int value)
type
- Type of attribute to modifyvalue
- Mod valuepublic boolean compareTo(Attributes otherAtt)
otherAtt
- Some other attributespublic java.lang.String getInfo()
public java.lang.String toString()
toString
in class java.lang.Object