Class EndTurnAction
java.lang.Object
net.demilich.metastone.game.actions.GameAction
net.demilich.metastone.game.actions.EndTurnAction
- All Implemented Interfaces:
Serializable,Cloneable,Notification
This action ends the player's current turn.
Sometimes, the action is not available. This is typically due to a pending DiscoverAction or OpenerAction.
- See Also:
-
Field Summary
Fields inherited from class net.demilich.metastone.game.actions.GameAction
chooseOneOptionIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voidexecute(GameContext context, int playerId) The implementation of this method actually represents the game effects of this action.getDescription(GameContext context, int playerId) A user-renderable description of what occurred in this notification.getSource(GameContext context) getTargets(GameContext context, int player) For visualization purposes, what are the targets of this notification?Methods inherited from class net.demilich.metastone.game.actions.GameAction
canBeExecutedOn, equals, getActionType, getChooseOneOptionIndex, getId, getSource, getSourceReference, getTargetReference, getTargetRequirement, hashCode, isClientInterested, isOverrideChild, isPowerHistory, setActionType, setChooseOneOptionIndex, setId, setOverrideChild, setSourceReference, setTarget, setTargetReference, setTargetRequirement, toString, withTargetReference
-
Constructor Details
-
EndTurnAction
public EndTurnAction(int playerId)
-
-
Method Details
-
clone
- Overrides:
clonein classGameAction
-
execute
Description copied from class:GameActionThe implementation of this method actually represents the game effects of this action.For example, the
PlayMinionCardActioneventually callsGameLogic.summon(int, Minion, Entity, int, boolean).- Specified by:
executein classGameAction- Parameters:
context- The game contextplayerId- The invoking player- See Also:
-
getSource
- Specified by:
getSourcein interfaceNotification- Overrides:
getSourcein classGameAction
-
getTargets
Description copied from interface:NotificationFor visualization purposes, what are the targets of this notification?- Specified by:
getTargetsin interfaceNotification- Overrides:
getTargetsin classGameAction- Parameters:
context- game contextplayer- the player- Returns:
- A reference to the entity that is the visualizable target of this notification.
-
getDescription
Description copied from interface:NotificationA user-renderable description of what occurred in this notification.- Specified by:
getDescriptionin interfaceNotification- Overrides:
getDescriptionin classGameAction- Parameters:
context- the game contextplayerId- the player ID- Returns:
- a description string
-