public static enum SoundMap.Measurement extends Enum<SoundMap.Measurement>
Enum Constant and Description |
---|
CHEBYSHEV
The distance it takes when diagonal movement costs the same as
cardinal movement.
|
MANHATTAN
The distance it takes when only the four primary directions can be
moved in.
|
Modifier and Type | Method and Description |
---|---|
static SoundMap.Measurement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SoundMap.Measurement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SoundMap.Measurement MANHATTAN
public static final SoundMap.Measurement CHEBYSHEV
public static SoundMap.Measurement[] values()
for (SoundMap.Measurement c : SoundMap.Measurement.values()) System.out.println(c);
public static SoundMap.Measurement 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 nullCopyright © 2012–2016. All rights reserved.