|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DefenseType> jurpe.combat.DefenseType
public enum DefenseType
DefenseType util class for type of defenses.
Enum Constant Summary | |
---|---|
ACTIVE_BLOCK
|
|
ACTIVE_DODGE
|
|
ACTIVE_PARRY
|
Method Summary | |
---|---|
boolean |
isAvailable()
If Active Defense is available this turn. |
void |
setAvailable(boolean avail)
Set availability of Active Defenses. |
java.lang.String |
toString()
Description of this defense type. |
static DefenseType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DefenseType[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DefenseType ACTIVE_BLOCK
public static final DefenseType ACTIVE_DODGE
public static final DefenseType ACTIVE_PARRY
Method Detail |
---|
public static final DefenseType[] values()
for(DefenseType c : DefenseType.values()) System.out.println(c);
public static DefenseType 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 boolean isAvailable()
public void setAvailable(boolean avail)
avail
- true, if active defenses are available this turn.public java.lang.String toString()
toString
in class java.lang.Enum<DefenseType>
|
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 |