|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjurpe.characters.PCharacterSkill
public class PCharacterSkill
It's a type that defines a skill associated to a PCharacter. PCharacterSkill differs from Skill in being associated with a level, and maintained as an attribute of a Charater. For instance, while Skill may be 'Sword', PCharacterSkill is the 'Sword' skill learned by current character at level 14.
Skill
,
Serialized FormConstructor Summary | |
---|---|
PCharacterSkill(Skill aA,
int aLivello)
Constructor |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object e)
An PCharacterSkill is equal to another if they have THE SAME NAME. |
int |
getLevel()
Returns the current level of the ability |
java.lang.String |
getName()
Returns the name of the ability |
Skill |
getSkill()
Returns the Skill associated with this current ability. |
int |
hashCode()
Return hash key for object. |
void |
improveSkillLevel(int delta)
Add "delta" to the current ability level |
java.lang.String |
toString()
Returns the name and level of ability |
java.lang.String[] |
toStrings()
Returns an array of Strings that describes the PCharacterSkill. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PCharacterSkill(Skill aA, int aLivello)
aA
- AbilityaLivello
- current levelMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object e)
equals
in class java.lang.Object
e
- PCharacterSkill to confront with.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getName()
public int getLevel()
public void improveSkillLevel(int delta)
delta
- Number of levels to add to current ability levelpublic java.lang.String[] toStrings()
public Skill getSkill()
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |