public enum CellMovement extends Enum<CellMovement>
| Enum Constant and Description |
|---|
DEFAULT
Default movement value for walkable cells
|
LESS_WALKABLE
Walkable cells, but not prioritized.
|
MOST_WALKABLE
The higher movement value, the most prioritized walkable cells.
|
NOT_WALKABLE
Simple not walkable cell
|
NOT_WALKABLE_INTERACTIVE
Not walkable cell containing an interactive object
|
PADDOCK
Cells for paddocks
|
ROAD
Cells for a road.
|
TRIGGER
Movement for triggers.
|
| Modifier and Type | Method and Description |
|---|---|
static CellMovement |
byValue(@IntRange(from=0L,to=7L) int value)
Get a cell movement by its integer value
|
static CellMovement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CellMovement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
boolean |
walkable()
Check if the current movement is for a walkable cell
|
public static final CellMovement NOT_WALKABLE
public static final CellMovement NOT_WALKABLE_INTERACTIVE
public static final CellMovement TRIGGER
public static final CellMovement LESS_WALKABLE
public static final CellMovement DEFAULT
public static final CellMovement PADDOCK
public static final CellMovement ROAD
public static final CellMovement MOST_WALKABLE
public static CellMovement[] values()
for (CellMovement c : CellMovement.values()) System.out.println(c);
public static CellMovement valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Pure public boolean walkable()
@Pure public static CellMovement byValue(@IntRange(from=0L,to=7L) int value)
value - The movement idCopyright © 2022. All rights reserved.