|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.haphazard.gui.engine.GraphicalObject
org.haphazard.item.GeneralItem
org.haphazard.item.GeneralClothes
This class contains all general information about clothes
| Field Summary | |
protected int |
mArmorValue
The protection received from this garment |
protected int |
mLevel
|
| Fields inherited from class org.haphazard.item.GeneralItem |
mAttackBonus, mDefenceBonus, mRestrictions, mSkill |
| Fields inherited from class org.haphazard.gui.engine.GraphicalObject |
id, mDefaultSprite, mDescription, mDescriptionColor, mDescriptionDisplayTime, mDescriptionStartTime, mDimension, mLink, mName, mSpriteDisplayed, mSprites, mWeight |
| Constructor Summary | |
GeneralClothes()
Creates a new instance of Clothes |
|
GeneralClothes(java.lang.String name)
Creates a cloth with a specific name |
|
| Method Summary | |
boolean |
allows(GeneralClothes clothes)
Checks if the clothes can be worn together |
int |
getArmorValue()
Gets the protectiveness of this clothing |
int |
getLevel()
Returns the level of this cloth The level denotes how far out the cloth is worn, a character cannot wear two clothes of the same level |
static GraphicalObject |
loadInstance(java.io.InputStream input)
Loads an instance of GraphicalObject |
void |
setArmorValue(int value)
Sets the protectiveness of this clothing |
void |
setLevel(int level)
Sets the level of this cloth |
java.lang.String |
toXML(int indent)
Translates this item into an XML notation |
| Methods inherited from class org.haphazard.item.GeneralItem |
addContainerSpecialization, addRestriction, equals, getAttackBonus, getContainerDimension, getContainerSpecializations, getContainerSpecializationSlots, getDamageBonus, getDefenceBonus, getRestrictions, hasEdges, hasEdges, isContainer, isContainer, isSolid, isSolid, setContainerDimension, setContainerSpecializationSlots, setDamageBonus |
| Methods inherited from class org.haphazard.gui.engine.GraphicalObject |
addSprite, combineSprites, displayDescription, displaySprite, getAvailableSprites, getBoundingBox, getDescription, getDimension, getName, getNotResettedSprite, getResettedSprite, getWeight, isDefaultSpriteDisplayed, load, optimize, paintComponent, resetDisplayedSprite, save, setDefaultSprite, setDefaultSprite, setDescription, setDimension, setName, setWeight, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int mArmorValue
protected int mLevel
| Constructor Detail |
public GeneralClothes()
public GeneralClothes(java.lang.String name)
name - The name of the cloth| Method Detail |
public int getArmorValue()
public void setArmorValue(int value)
value - How protective this clothing ispublic int getLevel()
public void setLevel(int level)
level - The level of the clothpublic boolean allows(GeneralClothes clothes)
clothes - The clothes to check against
public static GraphicalObject loadInstance(java.io.InputStream input)
input - The input for the stream
public java.lang.String toXML(int indent)
toXML in class GeneralItemindent - The indentation level
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||