Next problem is getting the minions to dig the rooms and build stuff.
For now i paint on dig commands which will tell the minions the tiles i want digging out.
My approach to the actual digging is first using a fast tilemap 'flood fill' to get all the tiles the minion has access to so i know a pathfinding test will always return true.
https://www.dropbox.com/s/dhdt28lutjsz8f3/fungeonKeeperFloodTest.mp4?raw=1
Then i can generate a list of tiles next to the ones i want digging out thats reachable. Of those i order the list by those with direct line of sight and nearest, then those without line of sight, perhaps in another connecting room.
The work order list is simple, the minion will always do the closest task. In order to re-task them you pick them up (which cancels their current job) and drop them near the job you want them to do. They then pick the closest again and do the job until complete and move to the next one.
Here is the next step.
https://www.dropbox.com/s/79ty7x7tyetmltw/fungeonKeeperDigging1.mp4?raw=1
Next i'll code the actual digging and a drag and drop of minions.