feat: added order factory which transform scenario objectives into actionables #5763
+298
−44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What it does
Add the concept of orders, the orders allow you to create a set of "orders" to give to your units, things like giving a priority target, retreating after X turns, leaving the battlefield through north or south, force enemy to retreat (focus attack only enemies not withdrawing) or stop enemies from retreating (focust attack on only enemies withdrawing).
The orders allows the player to set strategic objectives they want their formations to achieve during the simulation. It was primarily implemented for MekHQ AtBScenarios, to have each team follow the objectives that were set for them in the game.
Currently the feature transform scenario objectives into orders for the player, and load those into the simulation. The game also works fine without the orders.
Related:
#6402