|
||||||||||
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.Head
A very important bodypart
Field Summary |
Fields inherited from class org.haphazard.character.body.BodyPart |
mClothes, mSlots |
Constructor Summary | |
Head()
Creates a new instance of Head |
|
Head(java.lang.String name)
Creates a head with a specific name |
Method Summary | |
int |
getCritical()
Gets how critical this area is |
java.lang.String |
toXML(int indent)
Transforms this object into an XML-notation |
int |
wound(int damage)
Computes the effect of a wound |
Methods inherited from class org.haphazard.character.body.BodyPart |
addWound, canWear, getAllClothes, getArmorValue, getLocation, getName, getPenalty, getTreeNode, getWound, heal, isHit, isPrimary, isWearing, setName, setNaturalArmor, setToHit, status, toString, undress, wear |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Head()
public Head(java.lang.String name)
name
- The name of the headMethod Detail |
public int wound(int damage)
wound
in class BodyPart
damage
- The amount of damage received
public int getCritical()
getCritical
in class BodyPart
public java.lang.String toXML(int indent)
toXML
in class BodyPart
indent
- The indentation level to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |