net.sf.magicproject.stack
Class ActivatedChoice

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

public class ActivatedChoice
extends java.lang.Object

MChoice.java Created on 27 octobre 2002, 12:15

Author:
Fabrice Daugan

Field Summary
 java.util.List<Ability> abilities
          contains UserAbility items concerned by the current idEvent
 
Constructor Summary
ActivatedChoice(Ability ability)
          creates a new instance of MChoice with a specified ability.
 
Method Summary
 void addAbility(Ability ability)
          add an ability to the list of abilities of this choice
 void clear()
          remove all abilities activated for this card
 void disHighLight()
          dishighlight the card containing the abilities of this choice
 MCard getCard()
          return the card owning these activated abilities
 void highLight(boolean... highlightedZone)
          highlight the card containing the abilities of this choice.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

abilities

public java.util.List<Ability> abilities
contains UserAbility items concerned by the current idEvent

Constructor Detail

ActivatedChoice

public ActivatedChoice(Ability ability)
creates a new instance of MChoice with a specified ability. Other abilities can be added.

Parameters:
ability - is the first ability of this choice
See Also:
addAbility(Ability)
Method Detail

getCard

public MCard getCard()
return the card owning these activated abilities

Returns:
the card owning these activated abilities

highLight

public void highLight(boolean... highlightedZone)
highlight the card containing the abilities of this choice.

Parameters:
highlightedZone - the set of highlighted zone.

disHighLight

public void disHighLight()
dishighlight the card containing the abilities of this choice


addAbility

public void addAbility(Ability ability)
add an ability to the list of abilities of this choice

Parameters:
ability - is the ability to add to this choice

clear

public void clear()
remove all abilities activated for this card



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