|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.haphazard.character.body.BodyPart
org.haphazard.character.body.Arm
An implementation of an arm.
| Field Summary |
| Fields inherited from class org.haphazard.character.body.BodyPart |
mClothes, mSlots |
| Constructor Summary | |
Arm()
Creates a new instance of Arm |
|
Arm(java.lang.String name)
Creates an instance of an arm with a specific name |
|
Arm(java.lang.String name,
boolean primary)
Creates an arm with a name and denotes if it is an primary arm or not |
|
| Method Summary | |
Item |
getItem()
Gets the item held in this hand |
javax.swing.tree.DefaultMutableTreeNode |
getTreeNode()
Gets a node view over every thing in this bodypart |
boolean |
isPrimary()
Checks if this arm is a primary arm |
void |
setItem(Item item)
Sets the item held in this hand |
void |
setPrimary(boolean isPrimary)
Sets that the arm is a primary arm |
java.lang.String |
toXML(int indent)
Transforms this object into an XML-notation |
| Methods inherited from class org.haphazard.character.body.BodyPart |
addWound, canWear, getAllClothes, getArmorValue, getCritical, getLocation, getName, getPenalty, getWound, heal, isHit, isWearing, setName, setNaturalArmor, setToHit, status, toString, undress, wear, wound |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Arm()
public Arm(java.lang.String name)
name - The name of the bodypart
public Arm(java.lang.String name,
boolean primary)
name - The name of the partprimary - If the part is primary or not| Method Detail |
public boolean isPrimary()
isPrimary in class BodyPartpublic void setPrimary(boolean isPrimary)
isPrimary - True if the arm is primarypublic Item getItem()
public void setItem(Item item)
item - The item to holdpublic javax.swing.tree.DefaultMutableTreeNode getTreeNode()
getTreeNode in class BodyPartpublic java.lang.String toXML(int indent)
toXML in class BodyPartindent - The indentation level to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||