|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjurpe.items.BasicItem
jurpe.items.Armor
public class Armor
Armor Type.
BasicItem,
Serialized Form| Constructor Summary | |
|---|---|
Armor(java.lang.String name,
int cost,
int weight,
int aDp,
int aRd)
Constructor |
|
| Method Summary | |
|---|---|
static Armor |
createRandom(ItemValueType value,
RandomNames rn)
Creates a random generated Armor |
java.lang.String |
getDescription()
Long description |
int |
getDR()
Get Damage Resistance |
int |
getPD()
Get Passive Defense |
void |
unwear(PCharacter pc)
Polymorphic call to unwear this armor |
boolean |
wear(PCharacter pc)
Polymorphic call to wear this armor (BasicItem) |
| Methods inherited from class jurpe.items.BasicItem |
|---|
clone, compareTo, getCommonDescription, getCost, getName, getType, getWeight, isItemRandom, isItemUsable, isItemWearable, setRandom, toString, toStringWCost, use, warningMessage |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Armor(java.lang.String name,
int cost,
int weight,
int aDp,
int aRd)
name - Armor's namecost - Armor's costweight - Armor's weightaDp - Armor's Passive DefenseaRd - Armor's Damage Resistance| Method Detail |
|---|
public static Armor createRandom(ItemValueType value,
RandomNames rn)
value - ItemValueType indicating rarity of Itemrn - Handle to Random Names
public java.lang.String getDescription()
getDescription in class BasicItempublic boolean wear(PCharacter pc)
wear in class BasicItempc - PCharacter who's going to wear this Armor
public void unwear(PCharacter pc)
unwear in class BasicItempc - PCharacter who's going to unwear this armorpublic int getPD()
public int getDR()
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||