|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.clickable.ability.Ability net.sf.magicproject.clickable.ability.AbstractAbility net.sf.magicproject.clickable.ability.DetachmentAbility
public class DetachmentAbility
Field Summary |
---|
Fields inherited from class net.sf.magicproject.clickable.ability.Ability |
---|
optimizer, priority |
Constructor Summary | |
---|---|
DetachmentAbility(MEventListener event,
MCard from,
MCard to,
Test attachmentTest)
Creates a new instance of DetachmentAbility |
Method Summary | |
---|---|
Ability |
clone(MCard container)
return a copy of this ability TODO remove param container since it is not used in this constructor As default, return null |
java.lang.String |
getAbilityTitle()
Return ability html title. |
MCard |
getAttachedCard()
Returns the attached card. |
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. |
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, equals, eventComing, getCardCopy, getController, getName, getPictureName, getTargetable, getTriggeredClone, getTriggeredCloneChoice, hashCode, hasHighPriority, isAutoResolve, isHidden, isPlayAsSpell, manaNeeded, optimizeRegisterToManager, registerToManager, removeFromManager, resolveStack, setEvent, toHtmlString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DetachmentAbility(MEventListener event, MCard from, MCard to, Test attachmentTest)
event
- the event attached to this ability.from
- the card is to going to be attached.to
- the card is to going to be attached to.attachmentTest
- the attachement condition.Method Detail |
---|
public MCard getCard()
Ability
getCard
in interface Unregisterable
getCard
in class AbstractAbility
public Ability clone(MCard container)
Ability
clone
in class Ability
container
- is not used here
public boolean triggerIt(ContextEventListener context)
Ability
triggerIt
in class Ability
context
- the context needed by event activated
public java.lang.String getLog(ContextEventListener context)
Ability
getLog
in class Ability
context
- the current context of this ability.
public java.lang.String getAbilityTitle()
Ability
getAbilityTitle
in class Ability
public MCard getAttachedCard()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |