|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.haphazard.character.GeneralSkill
This class contains all general information about skills and attributes An attribute is a skill without a parent.
| Constructor Summary | |
GeneralSkill(java.lang.String name)
Creates a new instance of Skill |
|
GeneralSkill(java.lang.String name,
java.lang.String description)
Creates a new instance of Skill |
|
| Method Summary | |
boolean |
equals(java.lang.Object object)
Checks if this object is equal to another object |
java.lang.String |
getDescription()
Gets the description of the skill |
java.lang.String |
getName()
Gets the name of the skill |
java.lang.String |
getParent()
Gets the parent of this skill |
void |
setDescription(java.lang.String description)
Sets the description for this skill |
void |
setName(java.lang.String name)
Sets the name of the skill |
void |
setParent(java.lang.String parent)
Sets the parent skill/attribute of this skill This is used for determining values for characters that need to roll for a skill that they are lacking. |
java.lang.String |
toString()
Translates this object into a string representation |
java.lang.String |
toXML(int indent)
Translates this object into an XML notation |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public GeneralSkill(java.lang.String name)
name - The name of the skill, must be unique
public GeneralSkill(java.lang.String name,
java.lang.String description)
name - The name of the skill, must be uniquedescription - The description of the skill| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name - The name to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description to setpublic void setParent(java.lang.String parent)
parent - The parent of this skillpublic java.lang.String getParent()
public boolean equals(java.lang.Object object)
object - The object to compare with
public java.lang.String toXML(int indent)
indent - The level of indentation to use
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||