public enum HexagonOrientation extends Enum<HexagonOrientation>
Hexagon. The names
are self-explanatory.| Enum Constant and Description |
|---|
FLAT_TOP |
POINTY_TOP |
| Modifier and Type | Method and Description |
|---|---|
float |
getCoordinateOffset()
This is because the flat/pointy shape of a hexagon.
|
static HexagonOrientation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HexagonOrientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HexagonOrientation POINTY_TOP
public static final HexagonOrientation FLAT_TOP
public static HexagonOrientation[] values()
for (HexagonOrientation c : HexagonOrientation.values()) System.out.println(c);
public static HexagonOrientation 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 nullpublic final float getCoordinateOffset()
Copyright © 2016. All rights reserved.