|
||||||||||
| 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
public abstract class AbstractAbility
| Field Summary |
|---|
| Fields inherited from class net.sf.magicproject.clickable.ability.Ability |
|---|
optimizer, priority |
| Constructor Summary | |
|---|---|
AbstractAbility(java.lang.String name,
MEventListener event,
java.lang.String pictureName,
java.util.List<Ability> linkedAbilities,
TrueFalseAuto playAsSpell)
Creates a new instance of AbstractAbility |
|
| Method Summary | |
|---|---|
MAction[] |
actionList()
Return list of actions to play to cast this ability |
MAction[] |
effectList()
Return list of actions effects of this ability |
MCard |
getCard()
Return card where is this ability. |
boolean |
isMatching()
compare the current event to the event activating this ability. |
boolean |
recheckTargets()
Is this ability contains targeting action. |
| Methods inherited from class net.sf.magicproject.clickable.ability.Ability |
|---|
addLinkedAbility, checkObjectActions, checkTargetActions, clone, equals, eventComing, getAbilityTitle, getCardCopy, getController, getLog, getName, getPictureName, getTargetable, getTriggeredClone, getTriggeredCloneChoice, hashCode, hasHighPriority, isAutoResolve, isHidden, isPlayAsSpell, manaNeeded, optimizeRegisterToManager, registerToManager, removeFromManager, resolveStack, setEvent, toHtmlString, toString, triggerIt |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAbility(java.lang.String name,
MEventListener event,
java.lang.String pictureName,
java.util.List<Ability> linkedAbilities,
TrueFalseAuto playAsSpell)
name - the ability nameevent - the event attached to this ability.pictureName - the optional picture used to display this ability.linkedAbilities - the linked abilities. May be null.playAsSpell - play-as-spell.| Method Detail |
|---|
public MCard getCard()
Ability
getCard in interface UnregisterablegetCard in class Abilitypublic boolean isMatching()
Ability
isMatching in class Abilitypublic MAction[] actionList()
Ability
actionList in class Abilitypublic MAction[] effectList()
Ability
effectList in class Abilitypublic boolean recheckTargets()
Ability
recheckTargets in class Ability
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||