I need a solution for two parameters, both enums, to return me a seperate enum.
This is hard to explain, so let me elaborate by setting up an example.
I got three enumerations: A, B, and C.
Each hold no data, but they are different enums.
I want a solution that can do something like this:
public C(A a, B b) {
return...
Kind of like a hashmap, but with two mappings. I need this to map animations for a 2d side-scroller.
I have my characters direction, and state.
States would be jumping, standing, walking, running.
Directions would be left, and right.
Feel free to suggest anything that can make this easier. If it includes a different approach - so be it! Currently, this is the best approach I can come up with and I have no idea as to how to solve it.
I want to get the correct animation, from the characters direction, and state.