Class HexColor
java.lang.Object
spinhex.model.HexColor
Represents the available colors for hexagonal tiles in the SpinHex game.
For performance and memory efficiency, the colors are represented as single-byte values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NONE
public static final byte NONERepresents an empty tile, logically equivalent tonull
. This is used to indicate that a hexagonal tile is not occupied by any color.- See Also:
-
RED
public static final byte REDRepresents a red colored tile.- See Also:
-
GREEN
public static final byte GREENRepresents a green colored tile.- See Also:
-
BLUE
public static final byte BLUERepresents a blue colored tile.- See Also:
-
-
Constructor Details
-
HexColor
public HexColor()
-