org.haphazard.character.body
Class Leg

java.lang.Object
  extended byorg.haphazard.character.body.BodyPart
      extended byorg.haphazard.character.body.Leg

public class Leg
extends BodyPart

A simple implementation of a leg


Field Summary
 
Fields inherited from class org.haphazard.character.body.BodyPart
mClothes, mSlots
 
Constructor Summary
Leg()
          Creates a new instance of Leg
Leg(java.lang.String name)
          Creates a new leg with a name
 
Method Summary
 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, getTreeNode, getWound, heal, isHit, isPrimary, 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

Leg

public Leg()
Creates a new instance of Leg


Leg

public Leg(java.lang.String name)
Creates a new leg with a name

Parameters:
name - The name of the leg
Method Detail

toXML

public java.lang.String toXML(int indent)
Transforms this object into an XML-notation

Overrides:
toXML in class BodyPart
Parameters:
indent - The indentation level to use
Returns:
The object in an XML notation