|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.haphazard.item.Item
org.haphazard.item.Clothes
Clothes a character can wear
Field Summary |
Fields inherited from class org.haphazard.item.Item |
mContainer, mName, mQuality |
Constructor Summary | |
Clothes()
Creates a cloth |
|
Clothes(java.lang.String name)
Creates a cloth with a specific name |
Method Summary | |
boolean |
allows(Clothes clothes)
Checks if the clothes can be worn together |
int |
getArmorValue()
Gets the protectiveness of this clothing |
int |
getLevel()
Gets the layer level of this cloth |
java.lang.String |
toXML(int indent)
Transforms this object into an XML-notation |
Methods inherited from class org.haphazard.item.Item |
add, canHold, contains, getAttackBonus, getContainerDimension, getContainerWeight, getDamageBonus, getDefenceBonus, getDescription, getDimension, getFreeSpecializationSlots, getFreeVolume, getGeneralItem, getName, getRestrictions, getSkill, getTreeNode, getWeight, hasEdges, isContainer, isSolid, isSpecialization, remove, setName, toString, wear |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Clothes()
public Clothes(java.lang.String name)
name
- The name of the clothMethod Detail |
public int getArmorValue()
public int getLevel()
public boolean allows(Clothes clothes)
clothes
- The clothes to check against
public java.lang.String toXML(int indent)
toXML
in class Item
indent
- The indentation level to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |