|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.magicproject.clickable.ability.Ability
net.sf.magicproject.clickable.ability.AbstractAbility
net.sf.magicproject.clickable.ability.RemoveModifier
public class RemoveModifier
| Field Summary | |
|---|---|
Unregisterable |
modifier
The modifier to remove with this action |
| Fields inherited from class net.sf.magicproject.clickable.ability.Ability |
|---|
optimizer, priority |
| Constructor Summary | |
|---|---|
RemoveModifier(TriggeredEvent event,
Unregisterable modifier)
Creates a new instance of RemoveModifier |
|
| Method Summary | |
|---|---|
boolean |
equals(ContextEventListener thisContext,
Ability ability,
ContextEventListener context)
Compare two abilities the specified ability to the TBZ. |
java.lang.String |
getAbilityTitle()
Return ability html title. |
MCard |
getCard()
Return card where is this ability. |
java.lang.String |
getLog(ContextEventListener context)
Return a String identifying this ability with the name and/or card name. |
int |
hashCode()
|
void |
optimizeRegisterToManager()
Register this abilty to manager trying to append test on existing ability with same effects. |
void |
removeFromManager()
Remove from the event manager this listener. |
java.lang.String |
toString()
|
boolean |
triggerIt(ContextEventListener context)
called when this ability is going to be triggered This method would add this ability to the triggered zone, or perform another play action |
| Methods inherited from class net.sf.magicproject.clickable.ability.AbstractAbility |
|---|
actionList, effectList, isMatching, 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 |
|---|
public Unregisterable modifier
| Constructor Detail |
|---|
public RemoveModifier(TriggeredEvent event,
Unregisterable modifier)
event - the event attached to this ability.modifier - | Method Detail |
|---|
public void removeFromManager()
Unregisterable
removeFromManager in interface UnregisterableremoveFromManager in class Abilitypublic void optimizeRegisterToManager()
Ability
optimizeRegisterToManager in class Ability
public boolean equals(ContextEventListener thisContext,
Ability ability,
ContextEventListener context)
Ability
equals in class AbilitythisContext - the attached context of this abilityability - the ability to addcontext - the attached context of given ability
public int hashCode()
hashCode in class Abilitypublic MCard getCard()
Ability
getCard in interface UnregisterablegetCard in class AbstractAbilitypublic java.lang.String toString()
toString in class Abilitypublic boolean triggerIt(ContextEventListener context)
Ability
triggerIt in class Abilitycontext - the context needed by event activated
public java.lang.String getLog(ContextEventListener context)
Ability
getLog in class Abilitycontext - the current context of this ability.
public java.lang.String getAbilityTitle()
Ability
getAbilityTitle in class Ability
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||