Commit Graph

1086 Commits

Author SHA1 Message Date
drdev
5f68844fa4 Refactor deck import logic to be reusable by mobile game
Don't prompt about replacing deck contents if deck is empty
2015-04-05 16:36:02 +00:00
elcnesh
c100b90c70 - Add Deck copy constructor
- Throw exception when deserialising non-existing PaperCard
2015-04-02 08:43:58 +00:00
elcnesh
b98684877d Refactor lobby and add network support.
- Lobby code has been revised completely to support network lobbies;
  code has been separated into model and view parts.
- Added preliminary network game support; most of it should be working
  but hasn't been tested thoroughly.
- Fixed issue where controlling another player wouldn't be recognised
  by the GUI.
- Fixed issue where hand panels wouldn't display anymore.
- Minor fixes/cleanup.
2015-03-14 10:53:09 +00:00
Sol
14a8893fab - Fixing issue when testing cards not defined in an edition file being loaded in a deck 2015-03-12 13:56:26 +00:00
elcnesh
4a38b0d817 Huge update to the GUI codebase.
- Make match screen in gui-desktop non-singleton, allowing multiple games to be played simultaneously.
- Separate global gui commands (IGuiBase) from game-specific gui commands (IGuiGame), allowing games to send their commands to the correct gui.
2015-02-17 08:47:55 +00:00
drdev
883e011501 Prevent picking illegal commander deck when choosing random tiny leaders 2015-02-15 16:53:09 +00:00
drdev
caf5817d0b Support generating proper Tiny Leaders decks 2015-02-15 15:33:18 +00:00
drdev
e51a64242e Make format comformance check more generic 2015-02-15 14:32:47 +00:00
drdev
edaa52b507 Support restricting card pool at deck format level 2015-02-15 01:53:14 +00:00
drdev
2b4a509b78 Start fleshing out UI support for Tiny Leaders format 2015-02-14 23:01:35 +00:00
Hellfish
25da751464 *Added a few provisions for Tiny Leaders 2015-02-14 09:54:14 +00:00
Sloth
74d25c7ce1 - Fixed two typos. 2015-02-08 12:59:08 +00:00
Maxmtg
36bc0d08e1 removed the FCollection from forge-core 2015-02-01 03:13:08 +00:00
Krazy
f3a30793c5 Added foil basic lands to FRF boosters and updated the way foil cards are generated to account for multiple cards in printsheets. There should now be a more equal distribution of foil rarity. 2015-01-24 18:27:14 +00:00
Krazy
c0c4383953 Fixed land distribution for FRF. Basics have been removed entirely as per the real booster packs. Also cleaned up a bit of formatting. 2015-01-24 17:37:54 +00:00
Agetian
e9000fa6b7 - Temporarily reintroduced the processing of !fromSheet (only in its inverted form) to fix M15 and CNS booster generation without breaking KTK/DGM booster generation (until a better solution is introduced). 2015-01-24 05:28:05 +00:00
Krazy
6382dbbe76 Fixed printsheets. A bug was preventing anything other than same-set cards from appearing in any separately defined printsheets, which broke booster packs for sets such as Fate Reforged and Dragon's Maze that contain cards from other sets. Also corrected the Fate Reforged booster format to include some KTK dual lands and to not put common dual lands into the commons slots. 2015-01-21 04:36:58 +00:00
Agetian
56dd767343 - Revert the last couple commits, looks like there is no unwanted console spamming if everything is set up properly. 2015-01-14 04:59:23 +00:00
Agetian
e40f374eff - Forgot to commit this file. 2015-01-13 19:57:59 +00:00
Myrd
2853af3a10 Support saving/restoring game state that has creature tokens. 2015-01-03 19:15:44 +00:00
Myrd
648756d1b8 More use of Visitor pattern - allowing iteration over all cards in the game without allocating a temporary collection. 2014-12-31 03:19:41 +00:00
swordshine
2cd0919d29 - FRF: Added Sandsteppe Mastodon 2014-12-30 12:27:42 +00:00
drdev
f89316603b Support displaying unlock and win ratios for region 2014-12-14 04:02:44 +00:00
drdev
20b47f3b91 Support starting games with variants in Planar Conquest 2014-12-13 06:16:10 +00:00
drdev
7a20bd682e Support using commander as game avatar 2014-12-13 05:03:42 +00:00
elcnesh
6de61cb9a6 Code cleanup: make a lot of methods static and remove some unnecessary interface implements and casts. 2014-12-10 18:40:19 +00:00
drdev
b8b433586d Support playing conquest games 2014-12-07 01:20:52 +00:00
drdev
0e269420d2 Prevent more crashes in deck generator 2014-12-06 04:57:44 +00:00
drdev
32a1ee130f Prevent crash in DeckGeneratorBase 2014-12-06 04:26:01 +00:00
drdev
dccf428bb8 Support laying out panels in region display 2014-12-06 04:14:18 +00:00
elcnesh
06681655c3 Non-functional change for Java 8 compatibility. 2014-12-02 08:28:05 +00:00
Myrd
5b8014cb3b If the pic for a token doesn't exist, try loading one that doesn't have the set name suffix. 2014-12-02 03:16:04 +00:00
Sloth
bff7f28000 - Added Myriad Landscape.
- Fixed chooseSomeType AI function for land types.
2014-11-23 22:33:28 +00:00
drdev
769b5c1b37 Support generating deck for planar conquest commander 2014-11-23 05:11:23 +00:00
drdev
f62312ab07 Flesh out art for Dominaria and Shandalar regions 2014-11-22 05:46:15 +00:00
drdev
50da0900d1 Flesh out planes some more 2014-11-21 20:17:03 +00:00
drdev
2bb3951f40 Support sorting commanders 2014-11-21 18:46:49 +00:00
drdev
3bccb98607 Initial commit for Planar Conquest mode 2014-11-21 18:13:38 +00:00
elcnesh
57a09f275f Refactor attack declarations.
The game now correctly calculates whether an attack declaration is legal, based upon the restrictions and requirements present on the possible attacking creatures. AI support is not yet fully implemented, but the AI can always default to a legal attack declaration.
2014-10-30 15:44:13 +00:00
drdev
9827880c47 Create login dialog
Flesh out some structure for having PHP files to govern server access
2014-10-26 02:06:21 +00:00
drdev
e9c48ac495 Remove class that Android doesn't have access to 2014-10-19 01:36:45 +00:00
drdev
c6d2e89d13 Fix so AI respect Annihilator amount 2014-10-19 00:15:03 +00:00
drdev
e3bb577f73 Optimize hasImage check for paper cards by caching whether or not an edition has any images downloaded and avoiding the file exists checks if not 2014-10-18 21:52:37 +00:00
drdev
cd9a333bd0 Optimize image loading logic a bit 2014-10-18 01:00:22 +00:00
drdev
5b600bf592 Fix so cards with multiple subtypes have them appear in the correct order 2014-10-18 00:05:14 +00:00
drdev
08d714f635 Fix so the most recent edition with art appears in ItemManagers 2014-10-16 18:48:33 +00:00
drdev
1859fd1c4f Prevent randomly selecting version of a card that doesn't have art available when there's another version where art is available 2014-10-16 18:22:48 +00:00
drdev
5ba5b70f1f Refactor some the image loading code into forge-core 2014-10-16 16:17:18 +00:00
Sloth
aa1fc8765e - Fixed Changelings. 2014-10-15 20:54:16 +00:00
drdev
a3b3027ac2 Version bump to 1.5.29.006 2014-10-15 20:53:46 +00:00