Class DiscoverAction

java.lang.Object
net.demilich.metastone.game.actions.GameAction
net.demilich.metastone.game.actions.DiscoverAction
All Implemented Interfaces:
Serializable, Cloneable, HasCard, Notification

public class DiscoverAction extends GameAction implements HasCard
A DiscoverAction is a card and spell tuple that corresponds to a particular card selected by the player and the spell that will take that card as an argument.

Typically, discover actions have a ReceiveCardSpell that puts the card in getCard() into the player's hand. But any kind of spell that takes a SpellArg.CARD argument will work with a DiscoverAction.

Discover cards should never be executed directly. They are presented to the Behaviour in GameLogic.requestAction(Player, List), so they will always be some kind of "recursive" call inside a Behaviour.

See Also: