Class PlayWeaponCardAction
java.lang.Object
net.demilich.metastone.game.actions.GameAction
net.demilich.metastone.game.actions.PlayCardAction
net.demilich.metastone.game.actions.PlayWeaponCardAction
- All Implemented Interfaces:
Serializable,Cloneable,OpenerOverridable,Notification
An action that corresponds to playing a weapon card from the hand.
- See Also:
-
Field Summary
Fields inherited from class net.demilich.metastone.game.actions.PlayCardAction
loggerFields inherited from class net.demilich.metastone.game.actions.GameAction
chooseOneOptionIndex -
Constructor Summary
ConstructorsConstructorDescriptionPlayWeaponCardAction(EntityReference EntityReference) PlayWeaponCardAction(EntityReference reference, OpenerDesc opener) -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets a battlecry description for this object.booleanvoidinnerExecute(GameContext context, int playerId) Represents the consequences of playing a spell card, minion card, hero card, hero power card, etc.voidsetOpener(OpenerDesc action) Sets the battlecry.voidsetResolveOpener(boolean resolveOpener) Methods inherited from class net.demilich.metastone.game.actions.PlayCardAction
canBeExecutedOn, execute, getDescription, getSource, getTargetsMethods inherited from class net.demilich.metastone.game.actions.GameAction
equals, getActionType, getChooseOneOptionIndex, getId, getSource, getSourceReference, getTargetReference, getTargetRequirement, hashCode, isClientInterested, isOverrideChild, isPowerHistory, setActionType, setChooseOneOptionIndex, setId, setOverrideChild, setSourceReference, setTarget, setTargetReference, setTargetRequirement, toString, withTargetReference
-
Constructor Details
-
PlayWeaponCardAction
-
PlayWeaponCardAction
-
-
Method Details
-
clone
- Overrides:
clonein classPlayCardAction
-
innerExecute
Description copied from class:PlayCardActionRepresents the consequences of playing a spell card, minion card, hero card, hero power card, etc.Unlike
PlayCardAction.execute(GameContext, int), this method will not deduct mana, will not be counterable, and will not increment combos. In other words, this method omits the effects of playing a card from the hand.However, by using the action, a
TargetSelectionwill still occur.The
EntityReference.TARGETwill refer to whatever is theGameAction.getTargetReference().The
GameAction.getTargetRequirement()indicates whether or not these effects require a target to be selected.- Specified by:
innerExecutein classPlayCardAction
-
getOpener
Description copied from interface:OpenerOverridableGets a battlecry description for this object.- Specified by:
getOpenerin interfaceOpenerOverridable- Returns:
-
setOpener
Description copied from interface:OpenerOverridableSets the battlecry. May not be supported.- Specified by:
setOpenerin interfaceOpenerOverridable
-
setResolveOpener
public void setResolveOpener(boolean resolveOpener) - Specified by:
setResolveOpenerin interfaceOpenerOverridable
-
getResolveOpener
public boolean getResolveOpener()- Specified by:
getResolveOpenerin interfaceOpenerOverridable
-