net.sf.magicproject.clickable.ability
Class ModifierRemover

java.lang.Object
  extended by net.sf.magicproject.clickable.ability.Ability
      extended by net.sf.magicproject.clickable.ability.AbstractAbility
          extended by net.sf.magicproject.clickable.ability.RemoveModifier
              extended by net.sf.magicproject.clickable.ability.ModifierRemover
All Implemented Interfaces:
Unregisterable, ResolveStackHandler

public class ModifierRemover
extends RemoveModifier

Since:
0.86
Author:
Fabrice Daugan

Field Summary
 Test refreshTest
          The refreshing test
 
Fields inherited from class net.sf.magicproject.clickable.ability.RemoveModifier
modifier
 
Fields inherited from class net.sf.magicproject.clickable.ability.Ability
optimizer, priority
 
Constructor Summary
ModifierRemover(TriggeredEvent event, Unregisterable modifier, Test refreshTest)
          Creates a new instance of RemoveModifier
 
Method Summary
 boolean isMatching()
          compare the current event to the event activating this ability.
 
Methods inherited from class net.sf.magicproject.clickable.ability.RemoveModifier
equals, getAbilityTitle, getCard, getLog, hashCode, optimizeRegisterToManager, removeFromManager, toString, triggerIt
 
Methods inherited from class net.sf.magicproject.clickable.ability.AbstractAbility
actionList, effectList, recheckTargets
 
Methods inherited from class net.sf.magicproject.clickable.ability.Ability
addLinkedAbility, checkObjectActions, checkTargetActions, clone, eventComing, getCardCopy, getController, getName, getPictureName, getTargetable, getTriggeredClone, getTriggeredCloneChoice, hasHighPriority, isAutoResolve, isHidden, isPlayAsSpell, manaNeeded, registerToManager, resolveStack, setEvent, toHtmlString
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

refreshTest

public Test refreshTest
The refreshing test

Constructor Detail

ModifierRemover

public ModifierRemover(TriggeredEvent event,
                       Unregisterable modifier,
                       Test refreshTest)
Creates a new instance of RemoveModifier

Parameters:
event - the event attached to this ability.
modifier -
refreshTest -
Method Detail

isMatching

public boolean isMatching()
Description copied from class: Ability
compare the current event to the event activating this ability. If matching, verify that there enougth mana in the player's mana pool

Overrides:
isMatching in class AbstractAbility
Returns:
true if this ability can be played responding the current event


Copyright © 2003-2007 Magic-Project. All Rights Reserved.