net.sf.magicproject.stack
Class ActivatedChoiceList

java.lang.Object
  extended by net.sf.magicproject.stack.ActivatedChoiceList

public class ActivatedChoiceList
extends java.lang.Object

This class is representing all abilities activated for an event. This abilities are grouped by cards.

Author:
Fabrice Daugan

Constructor Summary
ActivatedChoiceList(java.util.List<Ability> abilityList, java.util.List<Ability> advancedList)
          Creates a new instance of MChoiceList with the specified playable spells/abilities.
 
Method Summary
 java.util.List<Ability> abilitiesOf(Targetable targetable)
          return the list of playable abilities of this card
 java.util.List<Ability> advancedAbilitiesOf(Targetable targetable)
          return the list of playable advanced abilities of this card
 void clear()
          remove all choices from the list
 void disHighLight()
          Dishightlight all cards containing any ability of this list.
 java.util.List<MZone> highLight()
          Hightlight all cards containing any ability of this list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivatedChoiceList

public ActivatedChoiceList(java.util.List<Ability> abilityList,
                           java.util.List<Ability> advancedList)
Creates a new instance of MChoiceList with the specified playable spells/abilities.

Parameters:
abilityList - is the specified playable spells/abilities
advancedList - is the specified playable advanced spells/abilities
Method Detail

clear

public void clear()
remove all choices from the list


abilitiesOf

public java.util.List<Ability> abilitiesOf(Targetable targetable)
return the list of playable abilities of this card

Parameters:
targetable - the card shearching it's playable abilities
Returns:
list of playable abilities of this card, or null if this card/player has no playable ability.

advancedAbilitiesOf

public java.util.List<Ability> advancedAbilitiesOf(Targetable targetable)
return the list of playable advanced abilities of this card

Parameters:
targetable - the card shearching it's playable abilities
Returns:
list of playable advanced abilities of this card, or null if this card/player has no playable ability.

highLight

public java.util.List<MZone> highLight()
Hightlight all cards containing any ability of this list. The cards with only advanced abilities are not highlighted.

Returns:
the list of highlighted zones

disHighLight

public void disHighLight()
Dishightlight all cards containing any ability of this list.



Copyright © 2003-2007 Magic-Project. All Rights Reserved.