Laser Squad [Day 5] – Improvements and refactoring

Several improvements regarding AP calculation when turning and moving forwards and backwards were done. The next feature that I’m going to implement required that I do a little bit of refactoring of the unit map data class and methods for movement…

…and the next feature is analysing tiles which are in front of a unit. Now we can look at the tile in front of us and see what actions can be performed on this tile (for example open / close actions for doors). For testing purposes I created a new mock map with some walls and doors.

The unit inventory class needed refactoring and cleaning up too. I’ve also used the time to comment all the code done by now.

     

* * * * *