|
Java Universal Role Playing Engine Version 0.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjurpe.items.AbstractItem
jurpe.items.Shield
public class Shield
Shield Type.
AbstractItem,
Serialized Form| Constructor Summary | |
|---|---|
Shield(java.lang.String name,
int dp,
int cost,
int weight)
Constructor |
|
| Method Summary | |
|---|---|
static Shield |
createRandom(ItemValueType value,
RandomNames rn)
Creates a random generated Shield |
java.lang.String |
getDescription()
Get Long Description |
int |
getPassiveDefense()
Get Passive Defense |
static void |
main(java.lang.String[] args)
Deprecated. |
void |
setCost(int sCosto)
Set cost |
void |
setWeight(int sPeso)
Set weight |
void |
unwear(PCharacter pc)
Unwear AbstractItem (polymorphic) |
boolean |
wear(PCharacter pc)
Polymorphic method to wear this AbstractItem |
| Methods inherited from class jurpe.items.AbstractItem |
|---|
canBeWorn, 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 Shield(java.lang.String name,
int dp,
int cost,
int weight)
name - Shields's namecost - Shields's costweight - Shields's weightdp - Shields's Passive Defense| Method Detail |
|---|
public static Shield createRandom(ItemValueType value,
RandomNames rn)
value - ItemValueType indicating rarity of Itemrn - Handle to Random Names
public void setCost(int sCosto)
sCosto - Shield's costpublic void setWeight(int sPeso)
sPeso - Shield's weightpublic int getPassiveDefense()
public java.lang.String getDescription()
getDescription in class AbstractItempublic boolean wear(PCharacter pc)
wear in class AbstractItempc - PCharacter that is going to wear this AbstractItem
public void unwear(PCharacter pc)
unwear in class AbstractItempc - PCharacter that is going to unwear this AbstractItempublic static void main(java.lang.String[] args)
args - arguments
|
Java Universal Role Playing Engine Version 0.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||