Commit Graph

1682 Commits

Author SHA1 Message Date
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
Myrd
205699bda3 fix restoring tapped and summon sick state 2014-12-16 19:19:42 +00:00
Myrd
ff17ebbc6c Clear cards in battlefield before adding the loaded ones when using set up game state function. 2014-12-16 19:07:58 +00:00
Myrd
85e7ad50b1 Ability to dump the current game state to a file in dev mode. 2014-12-16 19:04:05 +00:00
Myrd
8e3011294e Clean up includes. 2014-12-16 17:31:59 +00:00
Myrd
07757ff5d3 Refactor dev mode game state setting to a separate class. 2014-12-16 17:30:24 +00:00
drdev
f6b7ea95f2 Add a few more empty tiles 2014-12-16 06:01:10 +00:00
drdev
b0ccdaea9d Fix rounding issues with hexagon rendering 2014-12-16 05:43:18 +00:00
drdev
8c82551adc Support laying out and drawing tile map 2014-12-16 05:20:15 +00:00
drdev
02040ee026 Start major Planar Conquest overhaul 2014-12-16 01:28:29 +00:00
drdev
f89316603b Support displaying unlock and win ratios for region 2014-12-14 04:02:44 +00:00
drdev
de08df303b Improve how available pool is determined for Conquest deck editor 2014-12-13 19:34:48 +00:00
drdev
6c6554008c Support deck editing for Planar Conquest 2014-12-13 18:39:06 +00:00
drdev
02b13cbc89 Allow human and AI to have different planar decks 2014-12-13 06:31:11 +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
5055ed4d2b Add a "Hidden card ID" to face-down cards to uniquely identify them without spoiling the actual card id (hidden id increments each time a card is turned face-down). 2014-12-10 18:36:04 +00:00
drdev
1888d201e3 Add some delays to the end day process and make it so commanders selected in order 2014-12-08 03:47:20 +00:00