Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added order factory which transform scenario objectives into actionables #5763

Closed
wants to merge 5 commits into from

Conversation

Scoppio
Copy link
Collaborator

@Scoppio Scoppio commented Jan 12, 2025

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

@codecov-commenter
Copy link

codecov-commenter commented Jan 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.19%. Comparing base (fd739ba) to head (3a3cbb3).
Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5763      +/-   ##
============================================
- Coverage     10.21%   10.19%   -0.02%     
+ Complexity     6076     6073       -3     
============================================
  Files          1010     1011       +1     
  Lines        139310   139445     +135     
  Branches      20448    20481      +33     
============================================
- Hits          14231    14218      -13     
- Misses       123703   123859     +156     
+ Partials       1376     1368       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Scoppio Scoppio self-assigned this Jan 12, 2025
@Scoppio Scoppio requested a review from IllianiCBT January 12, 2025 16:28
@Scoppio Scoppio closed this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants