Class CardEvent
java.lang.Object
net.demilich.metastone.game.events.GameEvent
net.demilich.metastone.game.events.BasicGameEvent
net.demilich.metastone.game.events.CardEvent
- All Implemented Interfaces:
Serializable
,Cloneable
,HasCard
,Notification
- Direct Known Subclasses:
AbstractQuestEvent
,AfterCardPlayedEvent
,AfterSpellCastedEvent
,CardAddedToDeckEvent
,CardPlayedEvent
,CardRevealedEvent
,DiscardEvent
,DiscoverEvent
,DrawCardEvent
,HeroPowerUsedEvent
,InvokedEvent
,ReturnToHandEvent
,SecretRevealedEvent
,ShuffledEvent
,SpellCastedEvent
,SummonEvent
,WeaponEquippedEvent
A base class for events that have cards associated with them.
Sometimes the card is the GameEvent.getTarget()
and sometimes it is the GameEvent.getSource()
. Depends on the
implementation.
- See Also:
-
Constructor Summary
ConstructorDescriptionCardEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, boolean isClientInterested, @NotNull GameContext context, int targetPlayerId, int sourcePlayerId, Card card) CardEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, boolean isClientInterested, @NotNull GameContext context, Player player, Entity source, Entity target, Card card) CardEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, @NotNull GameContext context, int targetPlayerId, int sourcePlayerId, Card card) CardEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, @NotNull GameContext context, int playerId, Entity source, Entity target, Card card) CardEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, @NotNull GameContext context, Player player, Entity source, Entity target, Card card) CardEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, GameContext context, int targetPlayerId, int sourcePlayerId, Card card, Entity target) -
Method Summary
Methods inherited from class net.demilich.metastone.game.events.BasicGameEvent
getEventType, isClientInterested
Methods inherited from class net.demilich.metastone.game.events.GameEvent
clone, getDescription, getGameContext, getSource, getSourcePlayerId, getTarget, getTargetPlayerId, getTargets, isPowerHistory, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.demilich.metastone.game.events.Notification
getSource
-
Constructor Details
-
Method Details
-
getSourceCard
- Specified by:
getSourceCard
in interfaceHasCard
-