Trying to get rid of a few if-else statements if possible.

Hey,

I’ve made a lot of progress on my little ‘battle-simulation’ program and I’ve gotten to a point where the class that controls the battle is getting a bit long. I’m pretty sure that, as I continue to add things to the simulation, the battle class will become even longer and tougher to figure out.

I’m already starting to go over all the code and comment it but I’m not sure if I can cut out a few if or else statements to make the code a bit shorter and still run the same.

If anyone sees anywhere that I can get rid of or change a few statements then thanks!

https://github.com/Valkryst/Project_02/blob/master/src/main/java/valkryst/systems/Battle.java
(I’m working on the class, mainly adding comments, as of posting this so you might notice a few comments pop up or a few statements disappear or change as I find things to comment on/change.)