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
ConstructorsConstructorDescriptionBasicGameEvent(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.GameEventTypefinal booleanShould 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, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getEventTypein classGameEvent
-
isClientInterested
public final boolean isClientInterested()Description copied from interface:NotificationShould this notification be sent to the client?- Returns:
falseby default.
-