mercredi 27 septembre 2017

How to minimize multiple if statements?

I'm doing a code cleanup and I want your HELP The code creates units and place them in a unitPositionHashmap. Furthermore it reduces production value according to unit type. I'm looking for a way to reduce the amount of code and smarter way to structure this method, so I avoide almost dublicated code. The code

Aucun commentaire:

Enregistrer un commentaire