|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ItemValueType>
jurpe.system.generation.ItemValueType
public enum ItemValueType
ItemValueType constants determine the rarity of an object, ie:
switch (ivt) { case TRASH: break; case COMMON: break; case NORMAL: break; case AVERAGE: break; case MORETHANAVG: break; case RARE: break; case UNIQUE: break; }
Enum Constant Summary | |
---|---|
AVERAGE
|
|
COMMON
|
|
MORETHANAVG
|
|
NORMAL
|
|
RARE
|
|
TRASH
|
|
UNIQUE
|
Method Summary | |
---|---|
static ItemValueType |
fromValue(byte value)
Create a new ItemValueType of the give value |
byte |
getType()
Return the value of this item |
static ItemValueType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ItemValueType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ItemValueType TRASH
public static final ItemValueType COMMON
public static final ItemValueType NORMAL
public static final ItemValueType AVERAGE
public static final ItemValueType MORETHANAVG
public static final ItemValueType RARE
public static final ItemValueType UNIQUE
Method Detail |
---|
public static final ItemValueType[] values()
for(ItemValueType c : ItemValueType.values()) System.out.println(c);
public static ItemValueType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static ItemValueType fromValue(byte value)
value
- Value of item (10 to 250 where 10 is common and 250 is very
rare)
public byte getType()
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |