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

public class BasicGameEvent extends GameEvent
Construct and fire this event from an Spellsource.GameEventTypeMessage.GameEventType and the desired source and target.
See Also:
  • Constructor Details

    • BasicGameEvent

      public BasicGameEvent(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, boolean isClientInterested, @NotNull @NotNull GameContext context, Player player, Entity source, Entity target)
    • BasicGameEvent

      public BasicGameEvent(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, @NotNull @NotNull GameContext context, Player player, Entity source, Entity target)
    • BasicGameEvent

      public BasicGameEvent(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType eventType, @NotNull @NotNull GameContext context, int playerId, Entity source, Entity target)
    • BasicGameEvent

      public BasicGameEvent(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType typeEnum, GameContext context, int targetPlayerId, int sourcePlayerId)
    • BasicGameEvent

      public BasicGameEvent(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType typeEnum, GameContext context, Entity target, int targetPlayerId, int sourcePlayerId)
    • BasicGameEvent

      public BasicGameEvent(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType typeEnum, GameContext context, Entity source, Entity target, int targetPlayerId, int sourcePlayerId)
    • BasicGameEvent

      public BasicGameEvent(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType typeEnum, boolean isClientInterested, GameContext context, Entity source, Entity target, int targetPlayerId, int sourcePlayerId)
    • BasicGameEvent

      public BasicGameEvent(com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType typeEnum, boolean isClientInterested, GameContext context, Entity target, int targetPlayerId, int sourcePlayerId)
  • Method Details

    • getEventType

      public final com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType getEventType()
      Specified by:
      getEventType in class GameEvent
    • isClientInterested

      public final boolean isClientInterested()
      Description copied from interface: Notification
      Should this notification be sent to the client?
      Returns:
      false by default.