Commit Graph

208 Commits (master)

Author SHA1 Message Date
Leandro Doctors 2e6fcc2629 refactor: Apply "Protected Variations" for deck extension name 2020-02-05 17:58:37 +08:00
Leandro Doctors 2733516cb9 Organize imports 2020-01-16 08:21:24 +08:00
melvinzhang 3fed8cbf3e bump version number to 1.96 2019-12-29 11:16:33 +08:00
melvinzhang 8bd8eb53d8 bump version to 1.95 2018-11-12 21:40:52 +08:00
melvinzhang 5640960c34 replace manual close with try-with-resources statement 2018-11-01 17:01:18 +08:00
melvinzhang 5cb0594ee2 use getResourceAsStream instead of getResource, for #1617 2018-11-01 12:53:45 +08:00
melvinzhang 470c6fe675 use getResourceAsStream instead of getResource, for #1617 2018-11-01 12:44:25 +08:00
melvinzhang 0735be1f7b use getResourceAsStream instead of getResource, for #1617 2018-11-01 12:42:41 +08:00
Bilbo 91668c2964 Fix weird crash with bogus reason if deckfile does not exists (now it shows that deck is invalid). 2018-10-28 20:30:13 +08:00
Martin Petricek d61d92cede Follow symlinks when loading decks (#1618) 2018-10-21 16:35:58 +08:00
melvinzhang 521d10a571 bump version to 1.94, which will be released end August 2018-08-09 21:49:06 +08:00
melvinzhang f28d4a5f30 bump version to 1.93 for release 2018-04-29 20:15:59 +08:00
Martin Petricek bd5ae5fd7a Refactoring (#1543)
* Fix typos.

* Remove unnecessary boxing/unboxing.

* Replace traditional 'for' loops with 'foreach' loops.

* Replace explicit types with <> (diamonds) where they can be inferred.

* Collapse identical catch branches.

* Replace statement lambda with expression lambda for short statements.

* Remove unnecessary imports.

* Replace some lambdas with Comparator.comparing

* Replace Runnables with lambdas.

* Use addAll instead of adding whole collection manually.

* Simplify boolean expressions.

* Remove redundant 'else'.

* Simplify some boolean conditions that are always true or false.

* Inline redundant local variables.

* Remove extraneous semicolons.

* Fix Javadoc errors.

* Replace anonymous classes with lambdas.

* Replace chain of 'if's with switch.

* Remove delaration of exception that is never thrown.

* Use String/StringBuilder properly.
2018-04-08 08:59:14 +08:00
melvinzhang bd763817b0 add release note for 1.92 2018-03-01 20:27:36 +08:00
melvinzhang abc5dfa4f4 bump version to 1.91 to prepare for release 2018-01-23 15:06:19 +08:00
melvinzhang 5379ecd69a bump version to 1.90 2017-10-02 16:53:52 +08:00
melvinzhang 4f7af634ba bump version to 1.89 for September release 2017-08-29 16:58:25 +08:00
melvinzhang ccbe692940 replace StringBuffer with StringBuilder where it is used in a single-threaded way 2017-08-24 15:52:11 +08:00
melvinzhang ae4e0efb58 bump version to 1.88 for new dev cycle 2017-08-01 17:36:22 +08:00
lodici 2a95f8b876 use <list>.sort() instead of Collections.sort(<list>). 2017-07-21 15:30:08 +01:00
lodici 558852b8eb fixes #1211 : Incorrect translations sort order. 2017-07-21 07:53:16 +01:00
lodici 36d7235087 Save Properties file using PrintWriter and UTF-8. 2017-07-18 10:00:00 +01:00
lodici 36ea1f11e3 DeckParser supports gamepedia.com deck markdown (see #1187); fix MATCH2 regex; differentiate between unrecognized lines and errors in valid lines; 2017-07-16 12:09:42 +01:00
lodici daa9d385c0 add deck parser regex pattern constants. 2017-07-16 10:02:29 +01:00
lodici 7fc3e28580 update deck parser to support forge duel decks format (see #1187). 2017-07-16 00:46:01 +01:00
lodici 3967fc1571 make get/set methods static in GeneralConfig. 2017-07-12 18:57:49 +01:00
lodici 048f251a13 move 'deckFileMaxLines' to IntegerSetting. 2017-07-12 18:57:49 +01:00
lodici 93d3275e40 can drag and drop a deck file onto the deck editor screen and Magarena will attempt to load and display it (see #1187). 2017-07-12 12:36:09 +01:00
lodici 940c55cfeb Resume duel will now accept decks with missing cards. 2017-07-12 08:20:31 +01:00
lodici 3a8493eeba Allow adding invalid deck to deck editor. 2017-07-12 00:10:18 +01:00
lodici cbc1adb16f bump version to 1.87 2017-07-09 13:32:51 +01:00
lodici 4f2fd150b6 rename waitForAllCards() to waitForPlayableCards() 2017-07-09 09:30:02 +01:00
lodici f285009df7 rename FutureTask loadCards to loadPlayable 2017-07-09 09:28:20 +01:00
lodici d23a07e063 remove unused imports. 2017-06-17 09:25:11 +01:00
lodici a4ce8a2981 remove unused imports. 2017-06-17 09:23:00 +01:00
melvinzhang abf695ac4a ensure files and read/written using UTF_8 instead of platform default charset 2017-06-17 12:06:28 +08:00
lodici cbfb68ddf0 Language selection displays version of Magarena against which a translation was generated. (closes #1142). 2017-06-07 00:52:53 +01:00
lodici 30707191fc Move keywords files out of jar into \Magarena\translations\keywords folder. (closes #1140) 2017-06-04 01:46:17 +01:00
lodici 06b9329a10 bump version to 1.86 2017-06-04 01:21:22 +01:00
lodici cefcfabf67 fix: if opponent's hand hidden prevent access to full screen view. 2017-05-24 12:02:29 +01:00
lodici fc58e63931 fix: version label not set correctly when using --devmode command line param. 2017-05-16 16:38:07 +01:00
lodici 57480bc1da adds "--deck" command line arg which can be used to set an AI player's deck. 2017-05-11 23:01:09 +01:00
lodici fb64bd6e8e adds "--devmode" command line arg, same as -DdevMode=true VM arg. 2017-05-10 09:46:50 +01:00
lodici b07538a154 add option to specify each AI type and level when running a UI AI v AI game from the command line. 2017-05-09 22:03:51 +01:00
lodici cf8da4e63e bump version to 1.85 2017-05-05 20:13:44 +01:00
melvinzhang aa96cc8d4c bump version to 1.84 2017-04-06 09:21:35 +08:00
lodici d2d6f30c5c fixes #1093 : Top decks exception if deck file is missing. 2017-03-31 10:58:58 +01:00
lodici 417ca5d76b use #1088 fix for consistency when searching for decks containing a selected card in the cards explorer screen. 2017-03-12 20:08:38 +00:00
lodici f2291e61e6 DeckUtils.getDecksFolder() returns Path instead of String. 2017-03-12 20:01:07 +00:00
lodici cf9d8b2aff rename DeckUtils.getDeckFolder() to getDecksFolder(). 2017-03-12 19:35:59 +00:00