Urgh, I\'m kind of confused on how enums work in Java. In C# and C++ (what I use normally), this seems okay, but Java wants to get mad at me >.>
enum Dire
In Java enums don't hold any other values by default. You'll have to create a private field to store one. Try something like this
enum Direction { NORTH_WEST(0x0C), NORTH(0x10), ... private final int code; private Direction(int code) { this.code = code; } }
Add getter if necessary.