Class BasicGameEvent
java.lang.Object
net.demilich.metastone.game.events.GameEvent
net.demilich.metastone.game.events.BasicGameEvent
- All Implemented Interfaces:
Serializable
,Cloneable
,Notification
- Direct Known Subclasses:
AttributeAppliedEvent
,BoardChangedEvent
,CardEvent
,DidEndSequenceEvent
,EnrageChangedEvent
,GameStartEvent
,KillEvent
,MissileFired
,PreGameStartEvent
,SecretPlayedEvent
,SilenceEvent
,TargetAcquisitionEvent
,TurnEndEvent
,TurnStartEvent
,ValueEvent
,WeaponDestroyedEvent
,WillEndSequenceEvent
Construct and fire this event from an
Spellsource.GameEventTypeMessage.GameEventType
and the desired source
and target
.- See Also:
-
Constructor Summary
ConstructorDescriptionBasicGameEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, boolean isClientInterested, @NotNull GameContext context, Player player, Entity source, Entity target) BasicGameEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType typeEnum, boolean isClientInterested, GameContext context, Entity target, int targetPlayerId, int sourcePlayerId) BasicGameEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType typeEnum, boolean isClientInterested, GameContext context, Entity source, Entity target, int targetPlayerId, int sourcePlayerId) BasicGameEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, @NotNull GameContext context, int playerId, Entity source, Entity target) BasicGameEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, @NotNull GameContext context, Player player, Entity source, Entity target) BasicGameEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType typeEnum, GameContext context, int targetPlayerId, int sourcePlayerId) BasicGameEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType typeEnum, GameContext context, Entity target, int targetPlayerId, int sourcePlayerId) BasicGameEvent
(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType typeEnum, GameContext context, Entity source, Entity target, int targetPlayerId, int sourcePlayerId) -
Method Summary
Modifier and TypeMethodDescriptionfinal com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType
final boolean
Should this notification be sent to the client?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
-
getEventType
public final com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType getEventType()- Specified by:
getEventType
in classGameEvent
-
isClientInterested
public final boolean isClientInterested()Description copied from interface:Notification
Should this notification be sent to the client?- Returns:
false
by default.
-