|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jurpe.items.BasicItem jurpe.items.Item
public class Item
Item Type Class. An item may be a potion, a necklace, a ring and such...
BasicItem
,
Serialized FormConstructor Summary | |
---|---|
Item(java.lang.String name,
int cost,
int weight,
java.lang.String description,
int mod,
java.lang.String attribute,
boolean wearbool)
Constructor |
Method Summary | |
---|---|
static Item |
createRandom(ItemValueType value,
RandomNames rn)
Creates a new random item. |
java.lang.String |
getDescription()
Long description |
static void |
main(java.lang.String[] args)
Deprecated. |
void |
unwear(PCharacter pc)
Polymorphic call to unwear this armor |
boolean |
use(PCharacter pc)
Use BasicItem (polymorphic) |
boolean |
wear(PCharacter pc)
Polymorphic call to wear this item |
Methods inherited from class jurpe.items.BasicItem |
---|
clone, compareTo, getCommonDescription, getCost, getName, getType, getWeight, isItemRandom, isItemUsable, isItemWearable, setRandom, toString, toStringWCost, warningMessage |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Item(java.lang.String name, int cost, int weight, java.lang.String description, int mod, java.lang.String attribute, boolean wearbool)
name
- Item's namecost
- Item's costweight
- Item's weightdescription
- Item's descriptionmod
- int number that applies to Attribute when item is weared or
usedattribute
- describes what attribute is to be modified with this item
(currently HT,DX,IQ,ST)wearbool
- true if this item is wearableMethod Detail |
---|
public java.lang.String getDescription()
getDescription
in class BasicItem
public boolean wear(PCharacter pc)
wear
in class BasicItem
pc
- PCharacter who's going to wear this Item
public void unwear(PCharacter pc)
unwear
in class BasicItem
pc
- PCharacter who's going to unwear this armorpublic boolean use(PCharacter pc)
use
in class BasicItem
pc
- PCharacter that is going to use this BasicItem
public static Item createRandom(ItemValueType value, RandomNames rn)
value
- ItemValueType indicating rarity of Itemrn
- Handle to current RandomNames object
ItemValueType
public 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 |