|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--zork2Class.Item
the class Item creation :5 mai 03 at 17:54:16
Constructor Summary | |
Item(java.lang.String itName,
java.lang.String itDescription)
Constructor Item. |
Method Summary | |
boolean |
couldBeCross()
Method couldBeCross. |
java.lang.String |
getDescription()
Returns the itemDescription. |
int |
getDexterityAdd()
Returns the dexterityAdd. |
int |
getEnergyAdd()
Returns the energyAdd. |
java.awt.Image |
getImage()
Returns the image. |
int |
getIntelligenceAdd()
Returns the intelligenceAdd. |
java.lang.String |
getName()
Returns the itemName. |
int |
getPowerWeapon()
Returns the powerWeapon. |
int |
getStrengthAdd()
Returns the strengthAdd. |
int |
getValue()
Returns the itemValue. |
int |
getWeigth()
Returns the itemWeigth. |
boolean |
isMap()
Returns the isMap. |
boolean |
isWeapon()
Method isWeapon, this method check if that Item could be a weapon. |
void |
setDescription(java.lang.String description)
Sets the itemDescription. |
void |
setDexterityAdd(int dexterityAdd)
Sets the dexterityAdd. |
void |
setEnergyAdd(int energyAdd)
Sets the energyAdd. |
void |
setImage(java.awt.Image image)
Sets the image. |
void |
setImage(java.lang.String image)
Sets the image. |
void |
setIntelligenceAdd(int intelligenceAdd)
Sets the intelligenceAdd. |
void |
setIsMap(boolean isMap)
Sets the isMap. |
void |
setName(java.lang.String name)
Sets the itemName. |
void |
setPowerWeapon(int powerWeapon)
Sets the powerWeapon. |
void |
setStrengthAdd(int strengthAdd)
Sets the strengthAdd. |
void |
setValue(int value)
Sets the itemValue. |
void |
setWeigth(int weigth)
Sets the itemWeigth. |
java.lang.String |
toString()
method :Item toString return the item as a string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Item(java.lang.String itName, java.lang.String itDescription)
Method Detail |
public boolean couldBeCross()
public boolean isWeapon()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int getDexterityAdd()
public int getEnergyAdd()
public java.awt.Image getImage()
public int getIntelligenceAdd()
public boolean isMap()
public java.lang.String getDescription()
public java.lang.String getName()
public int getValue()
public int getWeigth()
public int getStrengthAdd()
public int getPowerWeapon()
public void setDexterityAdd(int dexterityAdd)
dexterityAdd
- The dexterityAdd to setpublic void setEnergyAdd(int energyAdd)
energyAdd
- The energyAdd to setpublic void setImage(java.awt.Image image)
image
- The image to setpublic void setImage(java.lang.String image)
image
- The image to setpublic void setIntelligenceAdd(int intelligenceAdd)
intelligenceAdd
- The intelligenceAdd to setpublic void setIsMap(boolean isMap)
isMap
- The isMap to setpublic void setDescription(java.lang.String description)
public void setName(java.lang.String name)
public void setValue(int value)
public void setWeigth(int weigth)
public void setStrengthAdd(int strengthAdd)
strengthAdd
- The strengthAdd to setpublic void setPowerWeapon(int powerWeapon)
powerWeapon
- The powerWeapon to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |