forked from External/mage
cleanup AbilityType for easier check that an ability is an activated ability (#12153)
* cleanup AbilityType * further cleanup * cleanup instanceof * tweak formatting * rework Rex * fix mistake in PlayerImpl * cleanup 'instanceof' for 'ActivatedManaAbilityImpl'
This commit is contained in:
parent
62cc49ffa3
commit
85cad4ff1e
118 changed files with 486 additions and 574 deletions
|
|
@ -62,6 +62,31 @@ public interface Ability extends Controllable, Serializable {
|
|||
*/
|
||||
AbilityType getAbilityType();
|
||||
|
||||
/**
|
||||
* If this ability is an activated one (mana included).
|
||||
*/
|
||||
boolean isActivatedAbility();
|
||||
|
||||
/**
|
||||
* If this ability is a triggered one (mana included).
|
||||
*/
|
||||
boolean isTriggeredAbility();
|
||||
|
||||
/**
|
||||
* If this ability is an activated one, excluding mana.
|
||||
*/
|
||||
boolean isNonManaActivatedAbility();
|
||||
|
||||
/**
|
||||
* If this ability is a mana activated one.
|
||||
*/
|
||||
boolean isManaActivatedAbility();
|
||||
|
||||
/**
|
||||
* If this ability is a mana ability, (both triggered and activated can be mana abilities).
|
||||
*/
|
||||
boolean isManaAbility();
|
||||
|
||||
/**
|
||||
* Sets the id of the controller of this ability.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue