Package com.c1games.terminal.algo.map
Enum CanRemove
java.lang.Object
java.lang.Enum<CanRemove>
com.c1games.terminal.algo.map.CanRemove
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CanRemove>
,java.lang.constant.Constable
public enum CanRemove extends java.lang.Enum<CanRemove>
The result of querying whether a structure can be removed at a particular location,
denoting either that it can be removed, or the reason
why it cannot.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description InfoUnitPresent
NoUnitPresent
OutOfBounds
WrongSideOfMap
Yes
-
Method Summary
Modifier and Type Method Description boolean
affirmative()
static CanRemove
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CanRemove[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
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
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
-
affirmative
public boolean affirmative()
-