Commit Graph

11 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
melvinzhang a9694c6e34 replace String.format with MagicMessage.format 2016-01-31 12:44:03 +08:00
lodici 011aeda60b Add tokenized card name to all log messages in DestroyAction. 2015-10-27 18:42:04 +00:00
lodici 4519bcb2c2 tokenize card name(s) in "...is destroyed." log message. 2015-09-19 21:14:04 +01:00
melvinzhang 184a964cae default RemoveFromPlayAction to call update when done, add RemoveAllFromPlayAction that performs a number of remove then call update 2015-05-13 11:22:59 +08:00
ShawnieBoy c1371c85a5 refactor MagicTapAction ->TapAction 2015-04-14 15:54:29 +01:00
ShawnieBoy 802595e80d refactor MagicRemoveFromPlayAction -> RemoveFromPlayAction 2015-04-14 14:23:13 +01:00
ShawnieBoy ef33a77ebb refactor MagicRemoveFromCombatAction -> RemoveFromCombatAction 2015-04-14 14:21:39 +01:00
ShawnieBoy 4537f8c7c1 refactor MagicRemoveAllDamageAction -> RemoveAllDamageAction 2015-04-14 14:10:19 +01:00
ShawnieBoy 733c3627d4 refactor MagicDestroyAction -> DestroyAction 2015-04-14 11:35:43 +01:00