Skip to content

Releases: triplea-game/triplea

2024-August-16 - 2.7.14858

16 Aug 11:58
94435ed
Compare
Choose a tag to compare
Pre-release
Bump junitJupiterVersion from 5.10.3 to 5.11.0 (#12836)

Bumps `junitJupiterVersion` from 5.10.3 to 5.11.0.

Updates `org.junit.jupiter:junit-jupiter-api` from 5.10.3 to 5.11.0
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.10.3...r5.11.0)

Updates `org.junit.jupiter:junit-jupiter-params` from 5.10.3 to 5.11.0
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.10.3...r5.11.0)

Updates `org.junit.jupiter:junit-jupiter-engine` from 5.10.3 to 5.11.0
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.10.3...r5.11.0)

---
updated-dependencies:
- dependency-name: org.junit.jupiter:junit-jupiter-api
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.junit.jupiter:junit-jupiter-params
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.junit.jupiter:junit-jupiter-engine
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

2024-August-16 - 2.7.14857

16 Aug 11:58
c34d914
Compare
Choose a tag to compare
Pre-release
Bump ch.qos.logback:logback-classic from 1.5.6 to 1.5.7 (#12838)

Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) from 1.5.6 to 1.5.7.
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.6...v_1.5.7)

---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-classic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

2024-August-11 - 2.7.14856

11 Aug 14:41
870de56
Compare
Choose a tag to compare
Pre-release
Fix issue 12822 GameMap#getNeighbors IllegalArgumentException (#12831)

* Fix issue 12822 GameMap#getNeighbors IllegalArgumentException
Root cause: myCapitol was null when calling method getNeighboringLandTerritories

ProTechAi.java
- new method getMyStrength making sure method getNeighboringLandTerritories is not called with myCapitol == null
- fix use of randomness now based on common ThreadLocalRandom

* Fix randomness in LanchesterDebugAction

LanchesterDebugAction.java
- fix use of randomness now based on common ThreadLocalRandom variable for each loop run (also passed to method getRandomUnitType)

2024-August-10 - 2.7.14855

10 Aug 19:45
1e72097
Compare
Choose a tag to compare
Pre-release
Bump org.awaitility:awaitility from 4.2.1 to 4.2.2 (#12825)

Bumps [org.awaitility:awaitility](https://github.com/awaitility/awaitility) from 4.2.1 to 4.2.2.
- [Changelog](https://github.com/awaitility/awaitility/blob/master/changelog.txt)
- [Commits](https://github.com/awaitility/awaitility/compare/awaitility-4.2.1...awaitility-4.2.2)

---
updated-dependencies:
- dependency-name: org.awaitility:awaitility
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

2024-August-09 - 2.7.14854

09 Aug 19:50
d15b9cd
Compare
Choose a tag to compare
Pre-release
Fix issue 12823 (EditPanel#sortUnitsToRemove) illegal argument except…

…ion (#12829)

* Getter for UnitAttachment boolean attributes is* can*

UnitAttachment.java
- set lombok @Getter annotation for boolean attributes of pattern is* and can* having simple getters, i.e., get-methods just returning the attribute value

affected by renaming methods:
-AbstractPlaceDelegate.java
-AirBattle.java
-AiUtils.java
-BattleStepsTest.java
-CasualtyUtil.java
-DummyPlayerTest.java
-EndTurnDelegate.java
-FiringGroupSplitterAaTest.java
-FiringGroupSplitterGeneralTest.java
-GameParserTest.java
-InitializationDelegate.java
-MarkNoMovementLeftTest.java
-Matches.java
-MovePerformer.java
-MoveValidator.java
-NeighborGetter.java
-OffensiveGeneralRetreatTest.java
-ProCombatMoveAi.java
-ProNonCombatMoveAi.java
-ProPurchaseOption.java
-ProPurchaseOptionMap.java
-ProSortMoveOptionsUtils.java
-ProTechAi.java
-RemoveUnprotectedUnitsTest.java
-ScrambleLogic.java
-StrategicBombingRaidBattle.java
-TabbedProductionPanel.java
-TransportTracker.java
-UnitAbilityFactory.java
-UnitAttachment.java
-UnitAttachmentTest.java
-UnitComparator.java
-UnitImageFactory.java
-UnitInformation.java
-UnitSeparator.java
-UnitTypeComparator.java
-UnitTypeComparatorTest.java
-WeakAi.java

* Fix issue 12823 EditPanel IllegalArgumentException

EditPanel.java
- avoid in method getRemovableUnitsOrder check on only one unit whether it is a transport capacity
- make attributes transient
- change selectedUnits.removeAll(units) to units.forEach(selectedUnits::remove)
- extract method getScrollPane

UnitAttachment.java
- new method isTransportCapacity() replacing != -1 comparisons
- comment typos

2024-August-09 - 2.7.14853

09 Aug 16:56
5e511b4
Compare
Choose a tag to compare
Pre-release
Fix issue 12826 (UnitSeparator#categorize:213 - java.util.ConcurrentM…

…odificationException) (#12828)

* Fix issue 12826 (UnitSeparator#categorize:213 - java.util.ConcurrentModificationException)

PlacePanel.java
- new method updateUnitsInUnitsToPlacePanel that ensures copying the unit collection (existed already in method updateStep, but not in gameDataChanged or updateUnits)
- Cleanup: extract new methods from declaration of variable placeMapSelectionListener which are getUnitsToPlace, getScrollPaneFromChooser, getPreferredHeight and getPreferredWidth

* PlayerUnitsPanel ToDo done via redraw

Replace
invalidate(); validate(); revalidate();getParent().invalidate();
with SwingComponents.redraw(this);

2024-August-05 - 2.7.14852

05 Aug 20:20
8b4bbda
Compare
Choose a tag to compare
Pre-release
Fix issues 12777 (#12819)

Rename settings windows button from "Reset" to "Reset to Saved"

SettingsWindow.java

2024-August-04 - 2.7.14851

04 Aug 19:27
4505bce
Compare
Choose a tag to compare
Pre-release
battleCalculator #1 (#12816)

issue 12688 (battle calc on own territory shows own player as attacker and defender)
Desired:
1. Attacker: Current player always, except when only allied units present (then next enemy)
2. Defender: As enemy to attacker with most units (fallback: whomever is at war and has the next turn)

AttackerAndDefenderSelectorTest.java
- simplification of method getAttackerAndDefender()
- new methods getBestAttacker() and getBestAttacker()
- removed now unused methods getOpponentWithPriorityList, playersAtWarWith, neutralPlayersTowards, getEnemyWithMostUnits

UnitCollection.java
- rename method getPlayersByUnitCount to getPlayersSortedByUnitCount

BattleCalculatorDialog.java
- extract common logic from method addAttackers and addDefenders to new method adjustBattleCalculatorPanel
- extract static attribute modifications from instance method dispose into new static method disposeInstance (especially pack also for adding attacker)

BattleCalculatorPanel.java
- introduce new methods setAttackerWithUnits and setDefenderWithUnits to limit attacker/defender change to own instance
- make setter of attribute attacker/defender private
- rename methods hasAttackingUnitsAdded and hasDefendingUnitsAdded to hasAttackingUnits and hasDefendingUnits
- rename attribute attackerUnitsTotalHitpoints to attackerUnitsTotalHitPoints

2024-August-04 - 2.7.14850

04 Aug 12:20
ba0653d
Compare
Choose a tag to compare
Pre-release
Sort battles cleanup (#12814)

* sort_Battles #1

TripleAFrame.java
- rename variable territoryDetails to territoryDetailsPanel
- rename variable actionButtons to actionButtonsPanel
- rename variable datacopy to gameDataCopy
- fix typos e.g. savegame or gamedata

Rename class ActionButtons to ActionButtonsPanel:
- ForumPosterComponent.java
- ActionPanel.java

BattleCalculatorDialog.java
- renamed Getter TripleAFrame.java.TerritoryPanel

TripleAPlayer.java
- fix typos savegame and gamedata
- rename variable battlesite to battleTerritory

Replace typos 'savegame' with 'save game'
- ActionButtonsPanel.java
- GameSequence.java
- HeadlessGameServer.java
- IEmailSender.java
- NodeBbForumPoster.java
- ServerLauncher.java
- TripleAFrame.java
- TripleAPlayer.java
- UpdateChecks.java

* sort_Battles #2

BattleTracker.java
- rename variables (e.g. territory collections) with same name as member attribute
- replace Map loop over keys with over entrySet
- rework methods getPendingBattles to consistently use CollectionUtils.getMatches instead of stream()
- rework methods getPendingBattle to consistently use stream() instead of loops
- make method getPendingBattleSites(bombing) private and usages more clear with new methods getPendingBattleSitesWithBombing() and getPendingBattleSitesWithoutBombing()
- replace lambdas with method
- typo 's instead of s

replace with new method BattleTracker.getPendingBattleSitesWithoutBombing()
- BattleDelegate.java
- MoveDelegateTest.java
- MustFightBattleTest.java
- RevisedTest.java
- WW2V3Year41Test.java
- WW2V3Year42Test.java

* sort_Battles #3
Keep BattleListing for passing to other methods and let method/variable names indicate BattleListing

ActionButtonsPanel.java
- let method changeToBattle use BattleListing instead of battles map

BattleTracker.java
- rename method getPendingBattleSites to getBattleListingFromPendingBattles

BattlePanel.java
- rename attribute battles to battleListing
- remove isBomb variable in method addBattleActions and subsequent methods as value can be determined by other parameter (BattleType)

IBattleDelegate.java
- rename method getBattles to getBattleListing

TripleAFrame.java
- let method getBattle use BattleListing instead of battles map

Affected by renaming method (getBattles to getBattleListing; getPendingBattleSites to getBattleListingFromPendingBattles)
- AbstractAi.java
- AirThatCantLandUtilTest.java
- BattleDelegate.java
- ProSimulateTurnUtils.java
- TripleAPlayer.java
- WW2V3Year41Test.java

* sort_Battles #4
Move BattleListing map building from BattleTracker into BattleListing

BattleTracker
- move logic of method getBattleListingFromPendingBattles() to constructor of BattleListing

BattleListing.java
- rename attribute battles to battlesMap
- change constructor to include logic of method BattleTracker.getBattleListingFromPendingBattles()
- extract new method getBattlesWith(predicate)

Subsequent changes for Getter on BattleListing.battlesMap
- AbstractAi.java
- AirThatCantLandUtilTest.java
- ProSimulateTurnUtils.java
- WW2V3Year41Test.java

* sort_Battles #5
fix RemoteActionCodeTest due to renaming IBattleDelegate.getBattles to getBattleListing
- required-op-codes.csv

2024-July-30 - 2.7.14848

30 Jul 23:20
3b98a99
Compare
Choose a tag to compare
Pre-release
Lobby websocket - fix disconnect - increase ping frequency (#12806)

Lobby was upgraded recently to be on a newer version of the
server platform. Seemingly the websocket timeout has dropped
to 30 seconds. The previous keep-alive of 45 seconds was
not enough.

Changing the value to 10 seconds allows for 3 failed tries before
a disconnect.