Commit Graph

73 Commits (2733516cb9cdad7ac4cef98b819d4d01846e5c66)

Author SHA1 Message Date
Leandro Doctors 2733516cb9 Organize imports 2020-01-16 08:21:24 +08:00
melvinzhang a84088394e add method to get starting life of player 2017-08-08 13:40:27 +08:00
lodici 78888c8151 Show warning message if invalid decks on starting a new game. 2017-07-12 09:41:30 +01:00
lodici 4c46560fba move duel management from MagicFrame to MagicDuel. 2017-07-09 11:28:08 +01:00
lodici efb2a4603d remove obsolete constant. 2017-05-14 11:43:42 +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 2a2c38795f remove unused constructor. 2017-04-07 20:22:53 +01: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
lodici 3d97985934 core code for implementing H2 game stats database (see #1041 for more details). 2017-02-01 12:44:59 +00:00
lodici 293418923a sort the contents of a properties file when saved. 2016-03-07 08:05:15 +00:00
melvinzhang c8f1262b45 remove trailing space from java code 2015-12-31 18:54:52 +08:00
melvinzhang 790ee64a08 replace hardcoded index with named constants, simplify expression to get start player 2015-12-29 09:05:53 +08:00
melvinzhang 024b49593e remove code for handling last game in a duel as there are no more games after getNrOfGames 2015-12-29 08:49:01 +08:00
melvinzhang 16e58c4e21 make opponentIndex a constant and add playerIndex for symmetry 2015-12-29 08:44:27 +08:00
lodici 7ca1020830 fixes #611 : crash when ending a one game duel. 2015-12-28 21:12:12 +00:00
melvinzhang dc2078e36b improve indentation of src code 2015-12-24 12:45:50 +08:00
lodici 54e0bb753f move DeckUtils and FileIO classes into magic.utility package. 2015-06-01 13:48:50 +01:00
lodici c5218709f3 Only load player decks from "duel" file via MagicDuel. Addresses #220 when starting a new duel (still a problem when resuming a duel though). 2015-04-24 15:57:01 +01: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 ecbcc59fa3 diamond inference refactor. 2015-04-20 12:24:40 +01:00
lodici 208a2812df remove pointless call to createPlayers() in MagicDuel. 2015-04-20 12:17:06 +01:00
lodici 4adb19df6c prefix MagicDuel properties with "duel". 2015-04-19 23:21:38 +01:00
lodici a1a4ddd8e5 rename getDuelFile() to getLatestDuelFile() and actual duel file to "latest.duel". 2015-04-19 23:12:49 +01:00
lodici dae1385999 re-organize MagicDuel imports. 2015-04-19 23:09:40 +01:00
lodici 35141af9f9 remove obsolete method from MagicDuel. 2015-04-19 23:09:06 +01:00
lodici 7a117a0e79 rename getPlayerDefinitions() to getPlayerConfigs(). 2015-04-19 22:45:52 +01:00
lodici 53a68e2e77 rename getPlayerDefinition() to getPlayerConfig(). 2015-04-19 22:43:56 +01:00
lodici 2e3634e61f rename setPlayerDefinitions to setPlayerConfigs; 2015-04-19 22:41:38 +01:00
lodici fbe61b36ae rename MagicPlayerDefinition to DuelPlayerConfig. 2015-04-19 20:21:25 +01:00
lodici b049c075e5 fix: DeckStrengthViewer was not working because player decks were not being created. 2015-04-18 18:33:25 +01:00
lodici 729d3b525c access MagicPlayerDefinition via DuelConfig from MagicDuel; DuelConfig loads and saves MagicPlayerDefinition properties instead of MagicDuel. 2015-04-18 18:33:22 +01:00
melvinzhang 039e39c9f3 remove AI specific methods from PlayerProfile, add MagicPlayer.getAiProfile convenience method 2015-04-04 21:46:34 +08:00
melvinzhang 679367d9ed remove methods and members that deal with AI specific information from MagicGame, MagicDuel, and DuelConfig 2015-04-04 21:46:34 +08:00
lodici f553cb67ca Invalid deck throws new InvalidDeckException instead of IOException and propagates up to UI/console layer for handling. 2015-02-22 17:18:36 +00:00
melvinzhang 6fee6d9757 remove passing state of DeckStrengthViewer into advanceDuel, replace with check if whether game is real 2015-02-18 10:47:29 +08:00
lodici 87eb42584f fix: player avatars missing when resuming a game. 2015-02-16 08:41:37 +00:00
lodici 059a2a05d8 rename MagicUtility class to MagicSystem. 2015-02-12 03:43:40 +00:00
lodici 8b8ac7b997 move MagicUtility class into magic.utility package. 2015-02-12 03:43:39 +00:00
lodici 52189231ce remove references to UI packages from MagicDuel and MagicGame model classes. 2015-02-04 02:06:50 +00:00
melvinzhang 320b6e6bf9 remove sound from MagicGame constructor 2014-11-29 21:00:45 +08:00
melvinzhang bf3f05671e convert line endings to LF 2014-11-07 20:09:48 +08:00
lodici 0fea74e72a New save game feature that can save game state to detail compatible with test scenarios. 2014-11-07 11:26:02 +00:00
Lodici a18b91b7ec Add Firemind decks to new duel setup screen. 2014-10-10 11:38:02 +01:00
Lodici 1a965ecac0 rename magic.ui.viewer package. 2014-09-05 10:58:29 +01:00
Lodici fbdeae836f - get data path via MagicFileSystem.
- remove obsolete public method.
2014-08-17 09:49:57 +01:00
Lodici 06b873725f Deck parsing updated so that it is a bit less brittle, especially with the new Decks screen. Invalid decks are now displayed with the name scored out and in red. The reason for the error is displayed in the description field. 2014-07-20 21:15:53 +01:00
Lodici 71d4b49406 refactor: replace with named constant. 2014-03-20 09:12:09 +00:00
Lodici 6cd5dacdfa refactor: exract method 2014-03-13 19:46:44 +00:00
Lodici f01012f8dd refactor: move deck generation code out of MagicDuel into DeckGenerators which seems a more appropriate place. 2014-03-13 16:09:52 +00:00