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
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
Martin Petricek
4313c14b41
Configurable time limits for running AI game. ( #1505 )
2018-03-18 10:40:19 +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
lodici
cb0fcc7d7f
remove unused import in FiremindDuelRunner.
2017-06-19 12:40:56 +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
melvinzhang
bbbdcac9ef
add override annotation to overridden methods
2017-06-17 11:19:03 +08:00
lodici
1915195aeb
Remove imports in same package.
2017-04-08 11:29:49 +01:00
lodici
bfc067506b
simplify code.
2017-03-12 20:12:57 +00:00
lodici
cf9d8b2aff
rename DeckUtils.getDeckFolder() to getDecksFolder().
2017-03-12 19:35:59 +00:00
lodici
f48e2c9740
Update card image downloading (see #1039 ).
2017-02-20 20:59:08 +00:00
Mike
12256f26bc
save firemind duel decks to known deck folder
2017-01-30 15:00:47 +01:00
lodici
a0836c99ee
Creates `firemind` decks folder if it does not exist to prevent exception (see #1051 ).
2017-01-30 11:53:09 +00:00
lodici
16b35f4e82
relocate VERSION and SOFTWARE_TITLE out of GeneralConfig and into MagicSystem to avoid statics dependency and fix issue #684 .
2016-02-07 20:39:31 +00:00
melvinzhang
c8f1262b45
remove trailing space from java code
2015-12-31 18:54:52 +08:00
lodici
cfd27a42b3
fixes #607 : Firemind deck ignored if name contains invalid filename character.
2015-12-28 12:06:38 +00:00
melvinzhang
dc2078e36b
improve indentation of src code
2015-12-24 12:45:50 +08:00
lodici
f2b38f9739
prevent exception if json feed has a null string. (fixes #563 ).
2015-12-14 22:59:21 +00:00
lodici
64040dec28
Add new DownloadImagesScreen with related components and updates, pre-implementation.
2015-12-12 09:26:22 +00:00
Mike
69d016cebc
use correct directory name for script files
2015-10-24 12:02:46 +08:00
lodici
4b7e3c3e3a
Prevent NPE if firemind json feed contains formats with no decks ( fixes #461 ).
2015-10-07 10:50:31 +01:00
lodici
54e0bb753f
move DeckUtils and FileIO classes into magic.utility package.
2015-06-01 13:48:50 +01:00
melvinzhang
201018db2a
replace player and source from getArtificialOptions, getArtificialChoiceResults, and getPlayerChoiceResults
2015-05-16 09:41:33 +08:00
melvinzhang
94e96b596c
move parameters onto the same line as the method definition
2015-05-16 09:41:33 +08:00
lodici
c708cb1192
convert InvalidDeckException to unchecked exception and de-clutter code by removing related "throws" clauses.
2015-04-24 15:56:59 +01:00
lodici
fbe61b36ae
rename MagicPlayerDefinition to DuelPlayerConfig.
2015-04-19 20:21:25 +01:00
melvinzhang
7c82eac981
add factory method 'create' to AiProfile and HumanProfile
2015-04-19 09:37:13 +08:00
lodici
6bfa6a0784
rename AiPlayer to AiProfile.
2015-04-05 14:48:12 +01:00
melvinzhang
5d7d88866d
replace call to setDifficulty and setAIs with MagicPlayerDefinition constructor that takes a player profile
2015-04-04 21:46:33 +08:00
melvinzhang
20d8da4d58
remove MagicPlayerDefinition.setArtificial
2015-04-04 17:06:05 +08:00
Mike
11b2a5f617
remove initialize call because it somehow hands on the buildDecks part
2015-03-31 09:44:22 +08:00
melvinzhang
f741702ed2
replace operator on strings to methods
2015-03-29 14:16:54 +08:00
melvinzhang
034d25ef87
replace deprecated toGMTString with SimpleDateFormat
2015-03-21 09:12:16 +08:00
Mike
d5f3aad844
fix indentation
2015-03-21 08:55:43 +08:00
Mike
511a0c0371
move duel runner into seperate class to prevent memory leaks
2015-03-21 08:55:40 +08:00
Mike
22dd769b0e
fix timezone problem
2015-03-21 08:55:03 +08:00
Mike
f13a33e446
add ai strength and life to firemind queue worker
...
add --self-terminate option to queue worker to shut down once the queue
is empty
2015-03-05 15:26:31 +08:00
melvinzhang
acb878ea61
replace tab with four spaces
2015-03-04 08:41:36 +08:00
melvinzhang
001eea44d9
correct reference to folder enum
2015-03-04 08:40:56 +08:00
Mike
9336ea5f8c
Improve Firemind worker
...
No longer shut down after fixed number of duels
Handle temp files for card script submission in a more resource
efficient way
Allow seed and AIs to be set dynamically
2015-03-03 22:56:04 +01:00
lodici
92a85bea07
move FiremindGameReport into magic.firemind package which can then be removed from core library if required.
2015-02-23 15:57:32 +00:00
lodici
e5b83544f3
consolidate duplicate code.
2014-11-25 16:42:47 +00:00
lodici
a8a0cfe2c5
replace FiremindJsonFile and NewVersionJsonFile with DownloadableJsonFile.
2014-11-25 16:05:55 +00:00
melvin
82be010961
handle IOException in refreshTopDecks
2014-10-26 19:50:09 +08:00
melvin
a0a8027175
merge and normalize source files
2014-10-11 08:39:10 +08:00
projectfiremind
22dbfc63c9
fix api call, initialize only card definitions
2014-10-10 22:09:11 +02:00
Lodici
21b57a7267
solution for Issue 643: Integrate top decks json feed from Firemind.
2014-10-10 11:17:18 +01:00
melvin
785bd9228a
normalize source files
2014-09-24 19:33:02 +08:00
projectfiremind
093c7b9f88
Add error handling and ability to temporarily add and test card scripts
2014-09-23 10:33:02 +02:00