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:

1 2

publicC(Aa, Bb) {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.

Yeah. You wouldn't have to make a corresponding number value for each enum, and if the enum class bodies are empty and you're just using them for their names (LEFT, RIGHT, JUMPING, etc), you may as well just use constant integers instead, with the same names (LEFT = 1, RIGHT = 2, JUMPING = 3, etc)

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org