|
||||||||||
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.UserAbility net.sf.magicproject.clickable.ability.ActivatedAbility
public class ActivatedAbility
An ability that can be manually played.
Field Summary |
---|
Fields inherited from class net.sf.magicproject.clickable.ability.Ability |
---|
optimizer, priority |
Constructor Summary | |
---|---|
ActivatedAbility(java.io.InputStream inputFile,
MCard card)
Creates a new instance of ActivatedAbility Structure of InputStream : Data[size] |
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. |
java.lang.String |
getLog(ContextEventListener context)
Return a String identifying this ability with the name and/or card name. |
void |
resolveStack()
called when the stack is resolving |
Methods inherited from class net.sf.magicproject.clickable.ability.UserAbility |
---|
actionList, checkObjectActions, checkTargetActions, clickOn, effectList, eventComing, getCard, isMatching, manaNeeded, mouseClicked, recheckTargets, toHtmlString, toString, triggerIt |
Methods inherited from class net.sf.magicproject.clickable.ability.Ability |
---|
addLinkedAbility, equals, getCardCopy, getController, getName, getPictureName, getTargetable, getTriggeredClone, getTriggeredCloneChoice, hashCode, hasHighPriority, isAutoResolve, isHidden, isPlayAsSpell, optimizeRegisterToManager, registerToManager, removeFromManager, setEvent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ActivatedAbility(java.io.InputStream inputFile, MCard card) throws java.io.IOException
inputFile
- card
-
java.io.IOException
- if error occurred during the reading process from the specified
input streamMethod Detail |
---|
public Ability clone(MCard container)
Ability
clone
in class UserAbility
container
- is not used here
public void resolveStack()
ResolveStackHandler
resolveStack
in interface ResolveStackHandler
resolveStack
in class Ability
StackManager.resolveStack()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |