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

Renamed Strategic Formations to Combat Teams #5340

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

IllianiCBT
Copy link
Collaborator

Replaced all occurrences of StrategicFormation with CombatTeam. Updated associated methods, variables, and references across multiple classes to align with this new terminology.

This terminology was changed based on a suggestion by @HammerGS. We spotted some confusion with the 'Strategic Formation' term among the user base. We logic'd that, as military wargamers, users would be more comfortable with the term 'Combat Team'. Especially as this term closely matches the purpose of Strategic Formations.

Replaced all occurrences of `StrategicFormation` with `CombatTeam`. Updated associated methods, variables, and references across multiple classes to align with this new terminology.
@IllianiCBT IllianiCBT self-assigned this Dec 11, 2024
* current campaign.
*/
public Hashtable<Integer, StrategicFormation> getStrategicFormationsTable() {
public Hashtable<Integer, CombatTeam> getCombatTeamsTable() {

Check notice

Code scanning / CodeQL

Exposing internal representation Note

getCombatTeamsTable exposes the internal representation stored in field combatTeams. The value may be modified
after this call to getCombatTeamsTable
.
NamedNodeMap attrs = wn.getAttributes();
Node classNameNode = attrs.getNamedItem("type");
String className = classNameNode.getTextContent();
try {
retVal = (StrategicFormation) Class.forName(className).newInstance();
retVal = (CombatTeam) Class.forName(className).newInstance();

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Class.newInstance
should be avoided because it has been deprecated.
@codecov-commenter
Copy link

codecov-commenter commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.46%. Comparing base (7ddb24c) to head (c5a1f5f).
Report is 51 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5340      +/-   ##
============================================
- Coverage     10.47%   10.46%   -0.01%     
+ Complexity     6069     6061       -8     
============================================
  Files           959      959              
  Lines        135559   135559              
  Branches      19750    19750              
============================================
- Hits          14204    14193      -11     
- Misses       119997   120010      +13     
+ Partials       1358     1356       -2     

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

@HammerGS HammerGS merged commit a071f5b into MegaMek:master Dec 15, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants