net.sf.magicproject.clickable.ability
Class ActivatedAbilityPlayer
java.lang.Object
net.sf.magicproject.clickable.ability.Ability
net.sf.magicproject.clickable.ability.UserAbility
net.sf.magicproject.clickable.ability.ActivatedAbility
net.sf.magicproject.clickable.ability.ActivatedAbilityPlayer
- All Implemented Interfaces:
- Unregisterable, ResolveStackHandler
public class ActivatedAbilityPlayer
- extends ActivatedAbility
An activited ability associated to a player.
- Since:
- 0.90
- Author:
- Fabrice Daugan
Constructor Summary |
ActivatedAbilityPlayer(java.io.InputStream inputFile,
MCard card)
Creates a new instance of ActivatedAbility
Structure of InputStream : Data[size]
ability type [1]
name name [String]
ability tags [1]
event [...] |
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 |
Player |
getController()
Return the controller of this ability |
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, 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 |
ActivatedAbilityPlayer
public ActivatedAbilityPlayer(java.io.InputStream inputFile,
MCard card)
throws java.io.IOException
- Creates a new instance of ActivatedAbility
Structure of InputStream : Data[size]
- ability type [1]
- name name [String]
- ability tags [1]
- event [...]
- nb of actions for cost part [1]
- pay action i [...]
- nb of actions for effect part [1]
- pay action i [...]
- controller [TestOn]
- Parameters:
inputFile
- card
-
- Throws:
java.io.IOException
clone
public Ability clone(MCard container)
- Description copied from class:
Ability
- return a copy of this ability
TODO remove param container since it is not used in this constructor As
default, return null
- Overrides:
clone
in class ActivatedAbility
- Parameters:
container
- is not used here
- Returns:
- copy of this ability
getController
public Player getController()
- Description copied from class:
Ability
- Return the controller of this ability
- Overrides:
getController
in class Ability
- Returns:
- the controller of this ability
Copyright © 2003-2007 Magic-Project. All Rights Reserved.