Group and Sort Units onto Placements Logically
-
@cernel Actually, without big changes like showing them loaded, probably land units on sea would be better listed last, also after the air. So maybe a last place for all those units that are strictly dependant, like cargo. We might go ahead and consider the reverse on land, in case a developer will add the ability to "beach" ships (there was some talking, like in Diplomacy).
-
@cernel Cargo doesn't work without major changes as it groups all the land units together right now so if you have multiple transport types, you'd have to split land units into groups.
I'll look to see what I can do for sea unit ordering and at least move sea units before land. I'll look at doing 'not hostile' vs 'allied' as well. I don't think that matters a ton for most maps but FFA/politic maps it could help a bit.
-
Made some slight adjustments.
Here is the proposed grouping/sorting:
- Unit owner: territory owner, not at war with territory owner, player order in XML
- Unit type: 0 movement, can't combat move, sea, air if sea territory, land, air if land territory
- Within each of those groups sort the units by XML order in UnitList