Package net.demilich.metastone.game.events
package net.demilich.metastone.game.events
Events correspond to things that happen inside the game that other rules can react to.
-
ClassDescriptionBase class for damage events.The card's effects have occurred and it has been moved to the graveyard.The damage has been dealt, all effects due to damage have been resolved, and now the physical attack has complete.A spell has been casted with
source
card and, if the user selected the target, thetarget
.The minion is on the board and its enchantments are in play.The amount of armor on the hero has changed.An attribute was applied to thetarget
.Construct and fire this event from anSpellsource.GameEventTypeMessage.GameEventType
and the desiredsource
andtarget
.Before the attack happens and damage dealt is calculated.Fires right after the minion has hit the board.Fires whenever the board may have changed.A card was inserted or shuffled into the deck, including "extra copies."A base class for events that have cards associated with them.The card is played from the hand.A card was revealed.ValueEvent.getValue()
damage has been dealt to theGameEvent.getTarget()
by theGameEvent.getSource()
.Actors will be destroyed.TheGameEvent.getTargetPlayerId()
ended their sequence.A card was discarded.A card was discovered (sourced).A target wasDrainSpell
drained.A card was put into the hand.AnActor
with anAttribute.ENRAGABLE
attribute was wounded or is now fully healed.Atarget
was healed with excess healing (i.e.An attempt to draw from an empty deck occurred and the drawing player took damage.The base class for game events, or things that happen during the execution of aGameAction
that other game rules may react to.The game has started.Indicates an event has a value, typically the damage dealt or mana changed, etc.TheEntityReference.EVENT_TARGET
was healed forEventValueProvider
healing.A skill was used.A card was invoked forEventValueProvider
/InvokedEvent.getValue()
mana.A joust event describes which cards were drawn and who won a joust from a point of view of a particular player.A minion was killed.Attribute.MAX_HP
was increased.The maximum amount of Lun the player has increased.An effect causes a missile to be fired.Lun has been gained or lost.Represents a general notification from inside theGameLogic
that theGameContext
or players might be interested in.Lun was overloaded (i.e.An attacker (theEntityReference.EVENT_SOURCE
) attacked the defender and dealtEventValueProvider
damage.Just before damage is dealt.Just before the game starts.A quest was played.A quest has processed.Encapsulates the information related to returning a target to the hand.A card was roasted (discarded from the deck).A secret was played.A secret was revealed.A card was shuffled.AnActor
was silenced usingSilenceSpell
.A spell was casted on the specified target.A minion was summoned and its openers were resolved ifSummonEvent.isResolvedOpener()
istrue
.A target will be acquired for the specified game action.An entity is being "touched" by the client.A trigger was fired from the specified enchantment.The player ended their turn.The player started their turn.An event that contains a value.The player destroyed their weapon.The player equipped a weapon.The sequence is about to end.