Separate the color and positional enums

This commit is contained in:
James Seibel
2020-09-25 10:00:52 -05:00
parent c24aa354b2
commit dfe55f197c
3 changed files with 39 additions and 30 deletions
@@ -1,30 +0,0 @@
package backsun.lod.objects;
/**
* Position: NE, SE, SW, NW
* <br>
* Color: TOP, N, S, E, W, BOTTOM
*/
public enum Pos
{
// used for position
NE(0),
SE(1),
SW(2),
NW(3),
// used for colors
TOP(0),
N(1),
S(2),
E(3),
W(4),
BOTTOM(5);
public final int index;
private Pos(int newValue)
{
index = newValue;
}
}
@@ -0,0 +1,22 @@
package backsun.lod.util.enums;
/**
* TOP, N, S, E, W, BOTTOM
*/
public enum ColorPosition
{
// used for colors
TOP(0),
N(1),
S(2),
E(3),
W(4),
BOTTOM(5);
public final int index;
private ColorPosition(int newValue)
{
index = newValue;
}
}
@@ -0,0 +1,17 @@
package backsun.lod.util.enums;
public enum LodPosition
{
// used for position
NE(0),
SE(1),
SW(2),
NW(3);
public final int index;
private LodPosition(int newValue)
{
index = newValue;
}
}