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
6245037367
rename UiString to MText.
2016-10-26 09:46:59 +01:00
lodici
e9efece076
make color names translatable for displaying in UI.
2016-02-11 21:36:21 +00:00
melvinzhang
6b82e2820c
move distance formula into MagicColor.distance
2016-01-16 11:57:19 +08:00
ShawnieBoy
3f9af54c1f
reorder cases to WUBRG order
2016-01-16 02:56:27 +00:00
ShawnieBoy
47e2e2b6f3
correct MagicColor order to WUBRG
2016-01-16 02:22:45 +00:00
ShawnieBoy
4dd8f6d36c
edit color matching method for MagicColor.getColor(String)
2015-08-20 14:27:31 +01:00
ShawnieBoy
de95c36ddd
add getColor() to MagicColor to return MagicColor from a string
2015-08-20 14:03:31 +01:00
melvinzhang
b2680ebc8b
simplify groovy code
2015-05-22 11:49:57 +08:00
melvinzhang
eb521083bf
consume tokens in becomes rule as they are parsed
2015-04-04 10:31:41 +08:00
ShawnieBoy
12f70d55cf
all MagicColor to return only valid colors from a list
2015-04-03 23:55:56 +01:00
melvinzhang
e3ecb4998f
remove Swing code from MagicColor
2014-11-11 20:08:02 +08:00
melvin
803e7f40d4
remove unused method
2014-08-28 15:34:34 +08:00
ShawnieBoy
3217ed3d09
Move .getLandwalkAbility() from MagicColor to MagicSubType
2014-07-01 15:28:36 +01:00
ShawnieBoy
b611eaae48
Import reorganise/remove unused
2014-04-18 22:43:01 +01:00
melvin
b204916039
make isColorless public so that it can be used by card scripts
2013-10-13 21:23:13 +08:00
melvin
f6233ac7c6
replace MersenneTwisterFast with Xorshift
2013-09-24 11:55:52 +08:00
melvin
bc6025edcd
move responsibility of parsing ability string from CardProperty to MagicAbility
2013-08-29 11:26:20 +08:00
melvin
64368e1b9a
remove extraneous whitespace
2013-06-24 09:33:35 +08:00
melvin
f1b27c586c
convert to UNIX line endings
2013-04-13 10:32:25 +08:00
melvin
268772fa7a
order colors using WUBRG
2013-01-02 12:28:01 +08:00
melvin
e6c451b19c
list of colors must support remove operation, fixed by copying values into new ArrayList
2012-10-27 13:50:47 +08:00
melvin
a07f67d1fa
replace hard coded list of color symbols with values()
2012-10-27 09:06:41 +08:00
melvin
5fbde53239
isColorless, isMono, isMulti take in a MagicSource
2012-10-09 22:40:44 +08:00
melvin
3c9a300bee
fixed spacing
2012-10-09 17:16:38 +08:00
melvin
14ccd4a165
convert tabs to four spaces
2012-06-16 22:55:26 +08:00
beholder
68d7a3917a
added CannotBeBlockedBy(color) ability. added Dauthi Horror
2011-10-20 17:41:30 +02:00
melvin
847af01b03
minimize accessbility of methods
2011-09-11 20:09:51 +08:00
melvin
391a56cbbd
throw RuntimeException instead of return null
2011-09-03 15:13:34 +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
fa1f2ae0a4
replace getIndex with ordinal
2011-06-16 21:10:13 +08:00
melvin
c122eaab65
added isColorless and isMulti to MagicColor
2011-05-28 15:41:42 +08:00
melvin
b8be2eb35d
Addes isMono static method to MagicColor and MagicPermanent.hasProtectionFrom
...
monocolored not checks that source.getColorFlags isMono in addition to
checking that source.getColoredType is MonoColored.
Fixes issue 3
2011-05-26 12:01:44 +08:00
ubeefx
953d095533
Added wild cards for two or three colors in new duel dialog.
...
Updated readme.
2010-12-17 23:54:13 +00:00
ubeefx
7fd13965b2
Initial version.
2010-11-21 18:54:59 +00:00