Commit Graph

42 Commits (2733516cb9cdad7ac4cef98b819d4d01846e5c66)

Author SHA1 Message Date
Leandro Doctors 2733516cb9 Organize imports 2020-01-16 08:21:24 +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
lodici 629414f471 Skip invalid cards when generating deck stats. 2017-07-12 00:14:19 +01:00
lodici 6245037367 rename UiString to MText. 2016-10-26 09:46:59 +01:00
lodici 0ee0a7d716 consolidate card type and color distribution stats into single fixed-size StatsTable (closes #692). 2016-02-16 12:28:21 +00:00
ShawnieBoy d899f6db9e remove card-type exclusivity from deck statistics panel 2016-01-30 12:32:52 +00:00
lodici 5c0695be92 make card type tooltips in deck statistics translatable. 2016-01-29 20:26:15 +00:00
ShawnieBoy b17ff93355 add new icons and layout to Deck Statistics panel 2016-01-29 16:42:11 +00:00
lodici 019449bf35 new look DeckStatisticsViewer. 2016-01-29 13:47:02 +00:00
melvinzhang c8f1262b45 remove trailing space from java code 2015-12-31 18:54:52 +08:00
melvinzhang 3440f158e0 improve indentation 2015-05-16 09:41:33 +08:00
lodici 5e26adb7a1 prefix mana icon enums in MagicIcon with MANA_. 2015-02-12 14:26:32 +00:00
lodici 9dc79cb741 merge ManaSymbol enum into MagicIcon enum. 2015-02-12 13:38:52 +00:00
lodici c457a072bf remove ImageIcon UI dependency for MANA_CURVE ICONS; remove references to UI packages from CardStatistics data class. 2015-02-11 23:14:23 +00:00
lodici 18075e310c remove ImageIcon UI dependency for TYPE_ICON. 2015-02-11 23:02:26 +00:00
lodici 2f3df381e6 bulk replace of public static icons in IconImages with call to getIcon() using MagicIcon enum in data package. 2015-02-11 15:58:27 +00:00
lodici feaa1edcc7 move IconImages into ui-related package as it is dependent on Swing/awt. 2015-02-04 16:46:35 +00:00
ShawnieBoy b611eaae48 Import reorganise/remove unused 2014-04-18 22:43:01 +01:00
Lodici 339a7a80fe - removed MagicPlayerDefinition dependency from DeckStatisticsViewer. 2013-12-04 22:38:55 +00:00
Lodici 8a864881ec - display tooltip describing each card-type icon in the Desk Statistics component. 2013-12-03 14:15:28 +00:00
melvin 64368e1b9a remove extraneous whitespace 2013-06-24 09:33:35 +08:00
melvin ca4ae7af9b remove redundant field initialization 2012-10-03 16:17:01 +08:00
melvin e52410deae convert tab to four spaces 2012-08-26 16:56:30 +08:00
beholder 1bef64d7cf fixed IndexOutOfBoundsException in CardStatistics when CMC > 9 2012-03-21 12:46:29 +01:00
melvin 37fdb107f2 Removed empty lines, added whitespace between operators 2011-11-29 15:49:55 +08:00
melvin ea02e20a3c do not count tokens in totalCards 2011-11-21 14:51:08 +08:00
melvin f07176f36e skip tokens when computing card statistics 2011-11-11 10:54:44 +08:00
beholder de8d6a00bb corrected CardStatistics 2011-10-30 13:07:51 +01:00
melvin f9aa1cf156 added more final annoatations on members 2011-09-11 21:57:19 +08:00
melvin 1a342c14b7 minimize access 2011-09-10 21:03:04 +08:00
melvin 92eaecee9e removed redundant modifiers, added final annotation 2011-09-08 17:23:22 +08:00
melvin 57beae6a8e replaced import * with single class import statements 2011-08-31 14:08:53 +08:00
melvin 850d01d3d1 optimized import statements with IntelliJ 2011-08-10 23:28:35 +08:00
melvin d444acc9e3 converted rarity to an enum 2011-06-24 12:08:53 +08:00
melvin be4e262d2e converted arrays to immutable list 2011-06-24 11:29:10 +08:00
melvin fa1f2ae0a4 replace getIndex with ordinal 2011-06-16 21:10:13 +08:00
melvin 1234b246eb print card statistics to stderr 2011-06-06 11:10:51 +08:00
melvin de0e2dffd0 convert to UNIX line endings 2011-05-21 15:48:40 +08:00
ubeefx 0a1c2b94ff Changed icon. 2011-03-12 21:28:35 +00:00
ubeefx 3f011947bb New deck generator part one. 2011-03-12 14:54:37 +00:00
singularita@gmail.com 3b787bf3d9 Re-added previously removed cards: Disperse, Elite Vanguard, Curse of Chains, Gruul War Plow
Added card: Tranquility

Feature: Added four extra cubes to be included: Extended, Legacy, Standard and Vintage, corresponding
         to all implemented cards matching appropriate tournament formats

Fixed:   Lockup when run out of available cards during booster generation with small card cube.
Fixed:   Extra column in statistics for "9 or more mana"
2011-01-18 04:37:37 +00:00
ubeefx 7fd13965b2 Initial version. 2010-11-21 18:54:59 +00:00