|
||||||||||
| 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.RefreshAbility
public class RefreshAbility
| Field Summary |
|---|
| Fields inherited from class net.sf.magicproject.clickable.ability.Ability |
|---|
optimizer, priority |
| Constructor Summary | |
|---|---|
RefreshAbility(TriggeredEvent event,
RefreshModifier refreshAction,
MCard trigger)
Creates a new instance of RefreshAbility |
|
| 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. |
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, removeFromManager, resolveStack, setEvent, toHtmlString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RefreshAbility(TriggeredEvent event,
RefreshModifier refreshAction,
MCard trigger)
event - the event attached to this ability.refreshAction - trigger - | Method Detail |
|---|
public 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 boolean triggerIt(ContextEventListener context)
Ability
triggerIt in class Abilitycontext - the context needed by event activated
public java.lang.String toString()
toString in class Abilitypublic java.lang.String getLog(ContextEventListener context)
Ability
getLog in class Abilitycontext - the current context of this ability.
public MCard getCard()
Ability
getCard in interface UnregisterablegetCard in class AbstractAbilitypublic 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 | |||||||||