public class GenericSkill extends GenericSkillTemplate implements java.io.Serializable
DELIMITER
Constructor and Description |
---|
GenericSkill()
Deprecated.
- XML Only
|
GenericSkill(GenericSkillTemplate mirror,
short ranks,
short misc) |
GenericSkill(java.lang.String encoded) |
GenericSkill(java.lang.String name,
byte ability,
java.lang.String group) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getCurrentBonus(AbstractCreatureInPlay ctr) |
int |
getCurrentBonus(CreatureTemplate template)
Calculates and returns the value of the skill: ranks + ability + misc
|
short |
getMisc() |
java.lang.Integer |
getMiscMod() |
java.lang.String |
getParentFeatureId() |
java.lang.Integer |
getRankMod() |
short |
getRanks() |
short |
getTotalMisc() |
short |
getTotalRank() |
int |
hashCode() |
void |
setMisc(short misc) |
void |
setMiscMod(java.lang.Integer miscMod) |
void |
setParentFeatureId(java.lang.String parentFeatureId) |
void |
setRankMod(java.lang.Integer rankMod) |
void |
setRanks(short ranks) |
compareTo, decodeAbility, getAbility, getGroup, getName, setAbility, setGroup, setName, spawn, toString
public GenericSkill(java.lang.String name, byte ability, java.lang.String group)
public GenericSkill(java.lang.String encoded) throws MalformedSkillException
MalformedSkillException
public GenericSkill(GenericSkillTemplate mirror, short ranks, short misc)
@Deprecated public GenericSkill()
public java.lang.String getParentFeatureId()
public void setParentFeatureId(java.lang.String parentFeatureId)
public void setRanks(short ranks)
public short getRanks()
public void setMisc(short misc)
public short getMisc()
public int getCurrentBonus(CreatureTemplate template)
template
- the creature who has the skillpublic int getCurrentBonus(AbstractCreatureInPlay ctr)
public boolean equals(java.lang.Object o)
equals
in class GenericSkillTemplate
public int hashCode()
hashCode
in class GenericSkillTemplate
public java.lang.Integer getRankMod()
public void setRankMod(java.lang.Integer rankMod)
public java.lang.Integer getMiscMod()
public void setMiscMod(java.lang.Integer miscMod)
public short getTotalMisc()
public short getTotalRank()