|
||||||||||
| 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.SystemAbility
public class SystemAbility
| Field Summary | |
|---|---|
static SystemAbility |
instance
An instance used to represent the game. |
| Fields inherited from class net.sf.magicproject.clickable.ability.Ability |
|---|
optimizer, priority |
| Constructor Summary | |
|---|---|
SystemAbility(java.io.InputStream inputFile)
Create an instance of SystemAbility Structure of InputStream : Data[size] name name + '\0' [...] |
|
| Method Summary | |
|---|---|
MAction[] |
actionList()
Return list of actions to play to cast this ability |
MAction[] |
effectList()
Return list of actions effects of this ability |
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. |
boolean |
isMatching()
compare the current event to the event activating this ability. |
boolean |
recheckTargets()
Is this ability contains targeting action. |
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.Ability |
|---|
addLinkedAbility, checkObjectActions, checkTargetActions, clone, 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 |
| Field Detail |
|---|
public static SystemAbility instance
| Constructor Detail |
|---|
public SystemAbility(java.io.InputStream inputFile)
throws java.io.IOException
inputFile - file containing this ability
java.io.IOException| Method Detail |
|---|
public boolean triggerIt(ContextEventListener context)
Ability
triggerIt in class Abilitycontext - the context needed by event activated
public boolean isMatching()
Ability
isMatching in class Abilitypublic final MAction[] actionList()
Ability
actionList in class Abilitypublic MCard getCard()
Ability
getCard in interface UnregisterablegetCard in class Abilitypublic MAction[] effectList()
Ability
effectList in class Abilitypublic boolean recheckTargets()
Ability
recheckTargets in class Abilitypublic 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 | |||||||||