Class DestroyWillQueue
java.lang.Object
net.demilich.metastone.game.events.DestroyWillQueue
- All Implemented Interfaces:
Serializable
,Notification
Actors will be destroyed.
Specifies if an aftermath will be fired, and which one, based on the associated enchantments.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDescription
(GameContext context, int playerId) A user-renderable description of what occurred in this notification.For visualization purposes, what is the source of this notification?getTargets
(GameContext context, int player) For visualization purposes, what are the targets of this notification?boolean
Should this notification be sent to the client?boolean
When true, indicates to processors of this notification that it belongs in the power history.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.demilich.metastone.game.events.Notification
getSource
-
Constructor Details
-
DestroyWillQueue
-
-
Method Details
-
getSource
Description copied from interface:Notification
For visualization purposes, what is the source of this notification?- Specified by:
getSource
in interfaceNotification
- Returns:
- A reference to the entity that is the visualizable source of this notification.
-
getTargets
Description copied from interface:Notification
For visualization purposes, what are the targets of this notification?- Specified by:
getTargets
in interfaceNotification
- Parameters:
context
- game contextplayer
- the player- Returns:
- A reference to the entity that is the visualizable target of this notification.
-
isPowerHistory
public boolean isPowerHistory()Description copied from interface:Notification
When true, indicates to processors of this notification that it belongs in the power history.- Specified by:
isPowerHistory
in interfaceNotification
- Returns:
true
if this notification should be stored in the power history of the game where it occurred.
-
getDescription
Description copied from interface:Notification
A user-renderable description of what occurred in this notification.- Specified by:
getDescription
in interfaceNotification
- Parameters:
context
- the game contextplayerId
- the player ID- Returns:
- a description string
-
isClientInterested
public boolean isClientInterested()Description copied from interface:Notification
Should this notification be sent to the client?- Specified by:
isClientInterested
in interfaceNotification
- Returns:
false
by default.
-
getDestroys
-