Commit Graph

6382 Commits (05899c560a70c5a148ac659dd48e341fcf957b04)

Author SHA1 Message Date
melvin 05899c560a changed line ending to LF 2012-10-14 21:55:54 +08:00
melvin 66d8f229df fixed indentation 2012-10-14 21:35:15 +08:00
melvin a893cb4ac1 hasLegalTargets is true if targetChoice is NONE 2012-10-14 21:27:18 +08:00
melvin d70e73eeb6 added rule to look for instances of null 2012-10-14 20:49:49 +08:00
melvin ed4d60cb34 override change method in triggers with specialize addTrigger methods 2012-10-14 20:41:47 +08:00
melvin 0d0f0bf98c remove asserts with side effect 2012-10-14 20:41:29 +08:00
melvin e50cb60f67 added type bounds for MagicTargetFilter 2012-10-14 18:48:24 +08:00
melvin 1b26eb7eff remove SuppressWarnings annotations 2012-10-14 18:32:34 +08:00
melvin a8d394b535 replace Collection<Object> with Collection<?> 2012-10-14 17:34:26 +08:00
melvin 8f893b808c added suppress warnings for filterTargets 2012-10-14 13:55:38 +08:00
melvin 82f93cc688 remove generic type for parameter targetFilter 2012-10-14 13:49:51 +08:00
melvin 5cd8802ad8 removed getSubTypeFlags, add hasSubType and hasAllCreatureType 2012-10-14 10:43:09 +08:00
melvin b7746bb330 replace constant with enum, CannnotBeTheTarget with Hexproof 2012-10-13 11:38:54 +08:00
melvin 78f11bee3f replace getAllAbilityFlags with getAbilityFlags 2012-10-13 11:37:55 +08:00
melvin 919fe9c8e6 added hasAbility and hasColor 2012-10-13 11:36:50 +08:00
melvin b09f833a47 replace constant with enum 2012-10-13 11:36:24 +08:00
melvin 421f4cb15c replace getAllAbilityFlags with getAbilityFlags 2012-10-13 11:36:04 +08:00
melvin 3c5add9343 replace ability.hasAbility(flags) with permanent.hasAbility(ability) 2012-10-13 11:35:43 +08:00
melvin 35a65f4f47 replace TARGET_NONE with NONE, getAllAbilityFlags with getAbilityFlags 2012-10-13 11:31:19 +08:00
melvin aa270db22f replace getAllAbilityFlags with getAbilityFlags 2012-10-13 11:30:34 +08:00
melvin 318a4a13cb change isValidTarget to follow style of MagicPermanent 2012-10-13 11:30:09 +08:00
melvin 1e7e035357 added hasAbility, hasColor 2012-10-13 11:27:03 +08:00
melvin 44458f9184 replace SELF with NONE 2012-10-13 11:26:37 +08:00
melvin 5a62e16dc1 remove ALL, simplify checks for spells 2012-10-13 11:26:20 +08:00
melvin 90e5e4a5ed move hasColor and hasAbility from MagicCardOnStack to MagicItemOnStack, added isSpell(type) 2012-10-13 11:25:41 +08:00
melvin 38c8ca67a3 rename getAllAbilityFlags as getAbilityFlags, reduce use of flags 2012-10-13 11:24:37 +08:00
melvin e9b36628d2 move hasColor and hasAbility from MagicSource to MagicObject 2012-10-13 11:15:28 +08:00
melvin 3a3e5d6dee rename CannotBeTheTarget to Hexproof 2012-10-13 11:14:46 +08:00
melvin 96f3a6161c wrap long lines 2012-10-12 14:52:57 +08:00
melvin fca6114d11 warp long lines 2012-10-12 14:51:29 +08:00
melvin f89f494588 remove header 'SCORE' as it affects sorting 2012-10-12 10:46:32 +08:00
melvin dbf8fa19ca replace extract_existing with extract_candidates 2012-10-12 10:43:16 +08:00
melvin de90d77067 use the appropriate filter method for the target filter 2012-10-11 21:41:44 +08:00
melvin 5390788bd8 replace getSource with getPermanent 2012-10-11 20:49:48 +08:00
melvin 0e12a2a96a remove casts using the correct filter method 2012-10-11 20:47:46 +08:00
melvin da02c78eeb added game.filterCards, replace filterTargets with filterCards to remove cast in card code 2012-10-11 20:31:58 +08:00
melvin 8b724f9c2c processTargetPermanent instead of processTarget 2012-10-10 22:27:24 +08:00
melvin b43f2da07a use more specific type for action to avoid need to cast 2012-10-10 22:27:09 +08:00
melvin 5b1be4c570 simplify condition 2012-10-10 22:26:46 +08:00
melvin 3980aec92b rename permanent state to indicate that it only affects activated abilities 2012-10-10 22:04:18 +08:00
melvin fe837ca869 improved extraction script 2012-10-10 22:03:56 +08:00
melvin 463fb07ab4 fixed some bugs, removed *Control factory methods 2012-10-10 21:02:49 +08:00
melvin 673b3178bc use generic for MagicTargetFitler to reduce casting 2012-10-10 20:40:31 +08:00
melvin 2b0d9ea49b made getColorFlags private 2012-10-09 22:42:34 +08:00
melvin 3f4c313511 replace getColorFlags with hasColor 2012-10-09 22:41:47 +08:00
melvin 257c13d3ed replace getColorFlags with hasColor 2012-10-09 22:41:18 +08:00
melvin 5fbde53239 isColorless, isMono, isMulti take in a MagicSource 2012-10-09 22:40:44 +08:00
melvin 6dbf60d0fd made MagicCard.getColorFlags private 2012-10-09 17:19:02 +08:00
melvin 277a1f44bf remove casts using by making MagicTargetFilter generic 2012-10-09 17:16:58 +08:00
melvin 3c9a300bee fixed spacing 2012-10-09 17:16:38 +08:00