Package ruscz.game.gameOfProd.Inventory
Enum ItemAction
- java.lang.Object
-
- java.lang.Enum<ItemAction>
-
- ruscz.game.gameOfProd.Inventory.ItemAction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ItemAction>,java.lang.constant.Constable
public enum ItemAction extends java.lang.Enum<ItemAction>
Enumerations for Item, describing what action provide
-
-
Constructor Summary
Constructors Modifier Constructor Description privateItemAction()
-
Method Summary
Modifier and Type Method Description static ItemActionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ItemAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEAL
public static final ItemAction HEAL
-
MANA
public static final ItemAction MANA
-
DEFENCE
public static final ItemAction DEFENCE
-
STRENGTH
public static final ItemAction STRENGTH
-
KEY
public static final ItemAction KEY
-
-
Method Detail
-
values
public static ItemAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ItemAction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-