public static enum AStarSearch.SearchType extends java.lang.Enum<AStarSearch.SearchType>
| Enum Constant and Description |
|---|
CHEBYSHEV
The distance it takes when diagonal movement costs the same as
cardinal movement.
|
DIJKSTRA
Full space search.
|
EUCLIDEAN
The distance it takes as the crow flies.
|
MANHATTAN
The distance it takes when only the four primary directions can be
moved in.
|
| Modifier and Type | Method and Description |
|---|---|
static AStarSearch.SearchType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AStarSearch.SearchType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AStarSearch.SearchType MANHATTAN
public static final AStarSearch.SearchType CHEBYSHEV
public static final AStarSearch.SearchType EUCLIDEAN
public static final AStarSearch.SearchType DIJKSTRA
DijkstraMap.public static AStarSearch.SearchType[] values()
for (AStarSearch.SearchType c : AStarSearch.SearchType.values()) System.out.println(c);
public static AStarSearch.SearchType 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 namejava.lang.NullPointerException - if the argument is nullCopyright © Eben Howard 2012–2022. All rights reserved.