Commit Graph

31 Commits (40cc5a3ea2dd0ac0c9cb18c7cd53137d7ac46330)

Author SHA1 Message Date
melvinzhang 3f446b5324 ensure switch statements handle all cases 2017-06-17 10:32:59 +08:00
melvinzhang dbff269cee improve method of extracting mana types from mana ability 2016-01-22 22:42:44 +08:00
melvinzhang c3c5c10cc3 remove support for {1} as colorless mana, fix Pristine Talisman 2016-01-01 09:06:36 +08:00
melvinzhang 81c0fd4693 reduce visibility of MagicManaType.ALL_TYPES 2015-12-25 11:06:39 +08:00
melvinzhang 9d91af17fb remove cases for mana types that are handled by final else block 2015-12-25 10:44:33 +08:00
melvinzhang c5bdc64aae merge case for {C} and {1} 2015-12-25 10:44:33 +08:00
ShawnieBoy 0129dd8394 Rename Colorless MagicCostManaType to Generic and add Colorless {C} 2015-12-14 12:53:57 +00:00
melvinzhang d71315c93b remove Colorless type from being generated by colored mana ability 2015-06-17 12:11:11 +08:00
melvinzhang b0c6d211f8 Revert "Colorless cost only accept Colorless type as payment"
This reverts commit e44f968e4a.
2015-06-17 11:58:46 +08:00
melvinzhang e44f968e4a Colorless cost only accept Colorless type as payment
This works since all permanents that generate colored mana also generates colorless mana
2015-06-17 11:07:41 +08:00
melvinzhang cab5fa905a add Colorless to ALL_COLORS, return it for "one mana of any color", add Snow back to ALL_TYPES 2015-06-17 10:33:11 +08:00
melvinzhang e87795e71c rearrange enum in WUBRG order, put Snow after Green. Remove Snow from ALL_TYPES, as "one color of any color" does not include Snow 2015-06-17 10:01:48 +08:00
ShawnieBoy b6f5909cc2 Add first pass of Snow Mana impementation see #367 2015-06-16 18:40:15 +01:00
melvinzhang 5b26b34d7d remove Swing code from MagicManaType 2014-11-11 20:08:03 +08:00
melvin e022abbffd standardize exception messages 2014-07-28 22:26:01 +08:00
ShawnieBoy 12d812ca74 Import tidyup for magic.model and magic.model.action 2014-04-18 14:58:52 +01:00
ShawnieBoy e859b8f3f5 Change 'tap add mana' to '{T}: Add <ManaType> to your mana pool.' and ManaType 'any' to 'one mana of any color' 2014-04-01 16:24:37 +01:00
melvin 64368e1b9a remove extraneous whitespace 2013-06-24 09:33:35 +08:00
melvin f1b27c586c convert to UNIX line endings 2013-04-13 10:32:25 +08:00
melvin 4792c4bb90 compute colorFlags from mana cost 2012-07-03 17:01:22 +08:00
melvin 14ccd4a165 convert tabs to four spaces 2012-06-16 22:55:26 +08:00
melvin e8546da818 added MagicManaType.getList
extended tap add mana to specify multiple mana types separated by or

added sac add mana any keyword ability
2011-11-21 13:26:50 +08:00
melvin 88fdb88936 added tap add mana <mana type> keyword ability 2011-11-21 12:46:15 +08:00
melvin 51c10cd659 replaced comparison with NONE with isValid() 2011-09-10 11:53:47 +08:00
melvin 495f98c5b8 throw RuntimeException instead of returning null 2011-09-03 15:14:42 +08:00
melvin 57beae6a8e replaced import * with single class import statements 2011-08-31 14:08:53 +08:00
melvin e8dbfd24c2 return MagicManaType.NONE to indicate a source cannot produce a certain mana type instead of returning null 2011-08-30 19:52:09 +08:00
melvin 850d01d3d1 optimized import statements with IntelliJ 2011-08-10 23:28:35 +08:00
melvin 2f108b78bd use List<MagicManaType> instead of MagicManaType[] 2011-06-24 12:49:05 +08:00
melvin 83771f31a5 remove hardcoded index in enums, use ordinal instead 2011-06-16 21:34:47 +08:00
ubeefx 7fd13965b2 Initial version. 2010-11-21 18:54:59 +00:00