net.sf.magicproject.clickable.ability
Class ActivatedAbilityPlayer

java.lang.Object
  extended by net.sf.magicproject.clickable.ability.Ability
      extended by net.sf.magicproject.clickable.ability.UserAbility
          extended by net.sf.magicproject.clickable.ability.ActivatedAbility
              extended by 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

Field Summary
 
Fields inherited from class net.sf.magicproject.clickable.ability.Ability
optimizer, priority
 
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.ActivatedAbility
getAbilityTitle, getLog, resolveStack
 
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
 

Constructor Detail

ActivatedAbilityPlayer

public ActivatedAbilityPlayer(java.io.InputStream inputFile,
                              MCard card)
                       throws java.io.IOException
Creates a new instance of ActivatedAbility

Parameters:
inputFile -
card -
Throws:
java.io.IOException
Method Detail

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.