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

wip: adding basis for caspar #6648

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from

feat: added some more considerations

274ad81
Select commit
Loading
Failed to load commit list.
Draft

wip: adding basis for caspar #6648

feat: added some more considerations
274ad81
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Mar 9, 2025 in 5s

15 new alerts

New alerts in code changed by this pull request

  • 3 warnings
  • 12 notes

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 103 in megamek/src/megamek/client/bot/caspar/FireControlHandler.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'gameState' is never used.

Check notice on line 239 in megamek/src/megamek/client/bot/caspar/TacticalPlanner.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'hex' is never used.

Check notice on line 239 in megamek/src/megamek/client/bot/caspar/TacticalPlanner.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'gameState' is never used.

Check notice on line 253 in megamek/src/megamek/client/bot/caspar/TacticalPlanner.java

See this annotation in the file changed.

Code scanning / CodeQL

Unread local variable Note

Variable 'List sortedObjectives' is never read.

Check notice on line 334 in megamek/src/megamek/client/bot/caspar/TacticalPlanner.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'formation' is never used.

Check notice on line 47 in megamek/src/megamek/client/bot/common/PathfindingEngine.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'gameState' is never used.

Check notice on line 47 in megamek/src/megamek/client/bot/common/PathfindingEngine.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'depth' is never used.

Check notice on line 45 in megamek/src/megamek/client/bot/common/minefield/DeploymentScorer.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'adjacent' is never used.

Check warning on line 94 in megamek/src/megamek/client/bot/neuralnetwork/NeuralNetworkTrainer.java

See this annotation in the file changed.

Code scanning / CodeQL

Unused format argument Warning

This format call refers to 0 argument(s) but supplies 1 argument(s).

Check warning on line 625 in megamek/src/megamek/client/bot/neuralnetwork/NeuralNetworkTrainer.java

See this annotation in the file changed.

Code scanning / CodeQL

Result of multiplication cast to wider type Warning

Potential overflow in
int multiplication
before it is converted to long by use in an invocation context.

Check notice on line 532 in megamek/src/megamek/client/bot/princess/PathEnumerator.java

See this annotation in the file changed.

Code scanning / CodeQL

Exposing internal representation Note

getUnitPaths exposes the internal representation stored in field unitPaths. The value may be modified
after this call to getUnitPaths
.

Check warning on line 218 in megamek/src/megamek/client/bot/princess/Princess.java

See this annotation in the file changed.

Code scanning / CodeQL

Start of thread in constructor Warning

Class
Princess
starts a thread in its constructor.

Check notice on line 330 in megamek/src/megamek/client/bot/princess/Princess.java

See this annotation in the file changed.

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
Agent.getFireControlState
; it is advisable to add an Override annotation.

Check notice on line 3489 in megamek/src/megamek/client/bot/princess/Princess.java

See this annotation in the file changed.

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
Agent.getEnemyHotSpots
; it is advisable to add an Override annotation.

Check notice on line 62 in megamek/src/megamek/utilities/CasparFineTuning.java

See this annotation in the file changed.

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.