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

Transaction Type Enum: Expanded Personnel Transaction Types #2793

Merged

Conversation

Windchild292
Copy link
Contributor

This swaps TransactionType to an Enum, adds a few new TransactionTypes (Recruitment and Retirement being the two primary ones), and standardizes the debit/credit methods to follow the exact same order as the Transaction constructor.

Most of the changes are just automated imports.

@Windchild292 Windchild292 added the (RFE) Enhancement Requests for Enhancement, new features or implementations label Aug 10, 2021
@Windchild292 Windchild292 self-assigned this Aug 10, 2021
@codecov
Copy link

codecov bot commented Aug 10, 2021

Codecov Report

Merging #2793 (5452dff) into master (d90684b) will increase coverage by 0.02%.
The diff coverage is 22.32%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2793      +/-   ##
============================================
+ Coverage     10.62%   10.65%   +0.02%     
- Complexity     3876     3880       +4     
============================================
  Files           717      718       +1     
  Lines        100126   100194      +68     
  Branches      16404    16413       +9     
============================================
+ Hits          10642    10679      +37     
- Misses        88101    88136      +35     
+ Partials       1383     1379       -4     
Impacted Files Coverage Δ
MekHQ/src/mekhq/campaign/Campaign.java 11.87% <0.00%> (-0.08%) ⬇️
MekHQ/src/mekhq/campaign/CurrentLocation.java 6.87% <0.00%> (ø)
...kHQ/src/mekhq/campaign/ResolveScenarioTracker.java 0.00% <0.00%> (ø)
MekHQ/src/mekhq/campaign/finances/Finances.java 3.20% <0.00%> (+0.02%) ⬆️
MekHQ/src/mekhq/campaign/finances/Transaction.java 0.00% <0.00%> (ø)
MekHQ/src/mekhq/campaign/mission/Loot.java 0.00% <0.00%> (ø)
MekHQ/src/mekhq/gui/FinancesTab.java 0.00% <0.00%> (ø)
.../src/mekhq/gui/adapter/PartsTableMouseAdapter.java 0.00% <0.00%> (ø)
.../mekhq/gui/adapter/PersonnelTableMouseAdapter.java 0.00% <0.00%> (ø)
...Q/src/mekhq/gui/adapter/UnitTableMouseAdapter.java 0.00% <0.00%> (ø)
... and 27 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d90684b...5452dff. Read the comment docs.

@Windchild292
Copy link
Contributor Author

Merging post-0.49.3.

@Windchild292 Windchild292 merged commit 7120d3b into MegaMek:master Aug 24, 2021
@Windchild292 Windchild292 deleted the dev_Windchild_TransactionType branch August 24, 2021 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(RFE) Enhancement Requests for Enhancement, new features or implementations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants