|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjurpe.items.BasicItem
jurpe.items.Shield
public class Shield
Shield Type.
BasicItem
,
Serialized FormConstructor 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 BasicItem (polymorphic) |
boolean |
wear(PCharacter pc)
Polymorphic method to wear this 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 Shield(java.lang.String name, int dp, int cost, int weight)
name
- Shields's namecost
- Shields's costweight
- Shields's weightdp
- Shields's Passive DefenseMethod 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 BasicItem
public boolean wear(PCharacter pc)
wear
in class BasicItem
pc
- PCharacter that is going to wear this BasicItem
public void unwear(PCharacter pc)
unwear
in class BasicItem
pc
- PCharacter that is going to unwear this BasicItempublic static void main(java.lang.String[] args)
args
- arguments
|
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 |