Commit Graph

2199 Commits

Author SHA1 Message Date
elcnesh
7d4364c036 Fix non-fatal error when starting a match. 2015-02-17 12:45:22 +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
Myrd
3ecb80f8d2 Slightly better fix for make canceling Delve refund exiled cards. I think this fixes a bug in the previous fix where AI would never exile the cards they chose to delve. 2015-02-15 20:41:31 +00:00
drdev
883e011501 Prevent picking illegal commander deck when choosing random tiny leaders 2015-02-15 16:53:09 +00:00
Sol
c29aa269b9 - Don't prompt user for mandatory targeting of minTargets = 0 with no legal targets. 2015-02-15 15:51:51 +00:00
drdev
caf5817d0b Support generating proper Tiny Leaders decks 2015-02-15 15:33:18 +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
8e62e17f65 *Made Delved cards not exile until cost is fully paid 2015-02-14 09:09:04 +00:00
drdev
9e03f047a9 Update Net decks urls 2015-02-10 15:16:26 +00:00
Myrd
859a853499 Add a somewhat hidden option in the UI to turn on simulation via a context menu on the AI radio button on desktop.
This allows choosing the AI mode without recompiling and also allows things like making a non-simulation AI play a simulation AI.
2015-02-07 18:32:02 +00:00
Maxmtg
1eeaa685db another clean-up for quest drafts (add ROE x3 drafts, fix core set drafts) 2015-01-30 07:26:48 +00:00
Agetian
0594145a4f - Fix triple draft set choices in Quest draft tournaments. 2015-01-30 05:49:17 +00:00
Maxmtg
aea1512435 ref: CardBlock offers sets as unmodifiable list, QuestEventDraft takes up less code :) 2015-01-30 05:22:09 +00:00
Agetian
610c5d308c - Somewhat more meaningful and correct variable names. 2015-01-27 19:32:20 +00:00
Agetian
b112a63d22 - Fix the draft order for sets before Mirrodin Besieged in Quest draft tournaments. 2015-01-27 19:30:43 +00:00
elcnesh
864b967465 Don't ask to delve if graveyard is empty. 2015-01-27 15:42:32 +00:00
elcnesh
92b80c69ff Refactoring changes and other updates:
- Completely refactor continuous static effects. Layers are now implemented properly in the sense that every effect applies the relevant parts in the relevant layer, while locking in the set of cards to which it applies.
- Refactor the (un)freezing of Trackable objects to a per-game Tracker object rather than static methods, to allow multiple games hosted on the same machine.
- Refactor the changing of card colours to match other parts of the code (like type and P/T changing) more closely. Also get rid of some static parameters in that code.
- Some changes in how split cards on the stack are handled to make them more robust.
- Some more minor changes/cleanup.
2015-01-26 10:41:06 +00:00
drdev
53cd66b7c5 Fix issue with contructor not available on Android 2015-01-25 06:35:00 +00:00
drdev
78e3cba419 Fix issue with missing function for Android 2015-01-25 05:51:53 +00:00
drdev
6d5416c175 Fix how net deck categories appear in select list 2015-01-25 05:12:54 +00:00
drdev
30fbe55ac3 Add Net Decks support 2015-01-25 05:10:32 +00:00
Myrd
5c609d80f0 Move getValidCardsToTarget() to CardUtil from TargetSelection, so it can be re-used from elsewhere (e.g. AI code I'm currently working on). 2015-01-22 06:25:46 +00:00
Agetian
45191930f0 - Fixed the Clash effect not revealing the card to the player when asking whether to put the card on the top or on the bottom of the library (possibly also fixes other similar effects that query the player via willPutCardOnTop). 2015-01-20 16:02:41 +00:00
Agetian
fd55dcfed5 - Added Planeswalker achievements for C14 planeswalkers. 2015-01-19 07:56:42 +00:00
drdev
d3f33c5954 Fix so ETB triggers fire when use DevMode Add To Battlefield for lands 2015-01-17 17:34:10 +00:00
Agetian
faedf1660e - Added updated information to some javadoc comments. 2015-01-17 14:50:19 +00:00
Agetian
282a122a14 - Made the Limited AI deck generation always obey the land set code requirement for the given card pool (used not to work correctly in Sealed Deck mode, instead giving the AI lands from random sets). 2015-01-17 14:47:57 +00:00
Agetian
9bc170b7a8 - Added an achievement for Ugin, the Spirit Dragon's ultimate ability. 2015-01-16 18:04:16 +00:00
drdev
72a33daf87 Prevent mobile app crashing on startup 2015-01-16 03:58:13 +00:00
Myrd
dc3f487d6b Fix following exception at game end:
java.lang.RuntimeException: Cannot remove input InputPayManaOfCostPayment because it's not on top of stack. Stack = []
	at forge.match.input.InputQueue.removeInput(InputQueue.java:60)
	at forge.match.input.InputSyncronizedBase.stop(InputSyncronizedBase.java:49)
	at forge.match.input.InputPayMana.onStateChanged(InputPayMana.java:431)
	at forge.match.input.InputPayMana$3.run(InputPayMana.java:382)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
2015-01-10 01:50:56 +00:00
-gz
aa6c7943aa During drafting stop reporting basic lands as not found on stdout 2015-01-06 00:52:13 +00:00
drdev
b2a3bcaae1 Make black and red tiles more distinct 2015-01-05 02:02:54 +00:00
drdev
3e51983237 Code cleanup 2015-01-05 01:49:00 +00:00
drdev
11b8cfed8b Support better tiles 2015-01-05 00:22:32 +00:00
drdev
a809ab2546 Support rendering color tiles instead of mana icons 2015-01-04 20:31:08 +00:00
Myrd
1a8ab8dfd0 Move DeckHtmlSerializer.java to forge-gui-desktop from forge-gui and remove freemarker as a dependency of forge-gui.
This removes a couple thousand unused methods from the Android APK.
2014-12-30 21:03:57 +00:00
swordshine
ff26173d64 - FRF: Added Kolaghan, the Storm's Fury (Keyword: Dash) 2014-12-30 10:54:52 +00:00
Myrd
bf34aec4fc Get rid of global static Card cache and hang it off the Game instead.
This paves the way for having multiple simulataneous game objects (e.g. for simulation).
2014-12-28 16:31:23 +00:00
Sloth
1230e7cbcc - Fixed chooseNumber crashing when min > max. 2014-12-21 08:28:22 +00:00
Myrd
e9be6c9152 Couple fixes to game state save/restore logic. 2014-12-18 17:50:43 +00:00
Myrd
8c97af50de Prompt before overwriting existing file. 2014-12-18 16:41:00 +00:00
Myrd
af3c5459c3 Move GameState class to AI project, where it can be used both by the human AI as it is now, and (in the future) by the AI, to help with simulating / restoring game state. 2014-12-18 16:11:10 +00:00
drdev
8048b216a9 Add Ravnica test case 2014-12-18 03:23:54 +00:00
drdev
41e4479f00 Support colorless regions 2014-12-18 03:13:49 +00:00
drdev
9980926c8a Code cleanup 2014-12-18 02:53:10 +00:00
drdev
d8e146b409 Support dividing map into regions 2014-12-18 02:46:41 +00:00
drdev
da24010b0b Support assigning and rendering mana icons for each tile 2014-12-17 05:35:08 +00:00
drdev
1440645a33 Add padding around edge of map 2014-12-17 02:59:14 +00:00
Myrd
30fb451a45 Remove global Player cache, instead make it hang off the Game object. 2014-12-16 21:55:33 +00:00