Releases: triplea-game/triplea
Releases · triplea-game/triplea
2024-August-25 - 2.7.14866
start game file directly via parameter (#12862) * start game file directly via parameter Examples arguments (for gradle run use pattern "run --args='<arguments>'": 'triplea.start=lobby' to start lobby login window 'triplea.game=<save file>' to start saved game as local game 'triplea.game=<game file>' to start new game as local game (only full path supported) 'triplea.game=<save file> triplea.start=pbem' to start saved game as PBEM game HeadedGameRunner.java - handling of main-arguments reworked, especially new one 'triplea.start' via parsing in new method setPropertiesFromArgs and handling in method showMainFrame MainFrame.java - new method startGameDirectly() - rename field mainFrame to mainJFrame to call method MainPanelBuilder.getMainPanelLaunchAction() with MainPanel CliProperties.java - add constants for TRIPLEA_START (triplea.start) Constants.java - adding @NonNls to some constants HeadedServerSetupModel.java - typos MainPanelBuilder.java - extract new public static method getMainPanelLaunchAction to allow call from MainFrame ServerModel.java - typos * fix checkstyleMain due to star imports '.*' --------- Co-authored-by: RogerCooper <[email protected]>
2024-August-24 - 2.7.14863
Fix 12855 Failed to start game (#12856) * 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); * tab Players - tooltips for technologies Smaller fixes: - SwingConstants instead of JLable - method setStatColumns with List.toArray - rename gameData to gameDataSync - introduce synchronized method TechTableModel.getDataAndInitRowMap() * Fix 12855 Failed to start game Example map: World War II v3 1941 UnsupportedOperationException caused by Arrays.asList (=fixed size list) followed with method call add()
2024-August-23 - 2.7.14862
tab Players - tooltips for technologies (#12853) * 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); * tab Players - tooltips for technologies Smaller fixes: - SwingConstants instead of JLable - method setStatColumns with List.toArray - rename gameData to gameDataSync - introduce synchronized method TechTableModel.getDataAndInitRowMap()
2024-August-18 - 2.7.14861
I18n v2.2 (Scope: strategy.engine.framework.startup.ui) (#12841) * i18n_v2 #1 annotate I18n classes with @NonNls * i18n_v2 #2 annotate @NonNls with .-pattern (.*String .+ *= "\w+\.[A-Za-z]+[A-Za-z\.]*) * i18n_v2 #3 fix via @NonNls imports * i18n_v2 #4 add @NonNls to Strings based on review with pattern (.*String .* = .*\+.*") * i18n_v2 #5 add @NonNls import to AbstractConditionsAttachment.java AbstractImageFactory.java AutoPlacementFinder.java ClipPlayer.java CliProperties.java CommentPanel.java DownloadFile.java FileNameUtils.java FlagIconImageFactory.java GameParser.java GameRunner.java InGameLobbyWatcher.java MapData.java NodeBbForumPoster.java NotificationMessages.java ObjectiveProperties.java PoliticsText.java ProductionRepairPanel.java ProductionTabsProperties.java TooltipProperties.java UnitIconProperties.java UnitImageFactory.java * i18n_v2.1 #6 add @NonNls to Strings based on review with static-String-pattern (.*static final String .* = ") * i18n_v2.1 #7 add @NonNls and Locals to getUpperCase() calls (toUpperCase\()\) * i18n_v2.1 #7 add @NonNls and Locals to toLowerCase() or toUpperCase() calls (?<!NonNls) (p.* static final String) * i18n_v2.1 #8 fix checkstyle error and spotlessJavaApply * LanchesterDebugAction System.out -> log.info * i18n v2.2 Scope: strategy.engine.framework.startup.ui 1. Invoke the Code | Analyse Code | Run Inspection by Name... action. 2. Select the Hardcoded strings inspection. New class HtmlBuilder.java to introduce simple builder pattern for HTML
2024-August-17 - 2.7.14860
I18n v2 (@NonNls + Locals for toLowerCase/toUpperCase) (#12840) * i18n_v2 #1 annotate I18n classes with @NonNls * i18n_v2 #2 annotate @NonNls with .-pattern (.*String .+ *= "\w+\.[A-Za-z]+[A-Za-z\.]*) * i18n_v2 #3 fix via @NonNls imports * i18n_v2 #4 add @NonNls to Strings based on review with pattern (.*String .* = .*\+.*") * i18n_v2 #5 add @NonNls import to AbstractConditionsAttachment.java AbstractImageFactory.java AutoPlacementFinder.java ClipPlayer.java CliProperties.java CommentPanel.java DownloadFile.java FileNameUtils.java FlagIconImageFactory.java GameParser.java GameRunner.java InGameLobbyWatcher.java MapData.java NodeBbForumPoster.java NotificationMessages.java ObjectiveProperties.java PoliticsText.java ProductionRepairPanel.java ProductionTabsProperties.java TooltipProperties.java UnitIconProperties.java UnitImageFactory.java * i18n_v2.1 #6 add @NonNls to Strings based on review with static-String-pattern (.*static final String .* = ") * i18n_v2.1 #7 add @NonNls and Locals to getUpperCase() calls (toUpperCase\()\) * i18n_v2.1 #7 add @NonNls and Locals to toLowerCase() or toUpperCase() calls (?<!NonNls) (p.* static final String) * i18n_v2.1 #8 fix checkstyle error and spotlessJavaApply
2024-August-16 - 2.7.14859
Bump org.junit.platform:junit-platform-launcher from 1.10.3 to 1.11.0…
2024-August-16 - 2.7.14858
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
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
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
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>