Laser Squad [Day 6] – More actions and a new Inventory dialog

Yesterday I didn’t had the time to cleanup the unit map data class, so I did it today. To wrap things up, with all these refactoring, it’s much easier to access the tiles on the map and alter their states.

“X” marks the spot! Items are also shown on the map. The simple menu dialog which handled unit’s inventory so far can’t be used anymore for more complex operations. Therefore, I decided to build an inventory dialog which consists of two lists: unit’s current items and items laying on the ground (tile) where the unit is located. The dialog has buttons for all necessary actions: equip / unequip, take / drop items. Info line where current unit AP’s and burden (encumbrance) is also shown.

 

* * * * *