Class JoustEvent

java.lang.Object
net.demilich.metastone.game.events.GameEvent
net.demilich.metastone.game.events.JoustEvent
All Implemented Interfaces:
Serializable, Cloneable, HasCard, Notification

public final class JoustEvent extends GameEvent implements HasCard
A joust event describes which cards were drawn and who won a joust from a point of view of a particular player.
See Also:
  • Constructor Details

    • JoustEvent

      public JoustEvent(GameContext context, int playerId, boolean won, Card ownCard, Card opponentCard)
  • Method Details

    • getEventType

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

      public boolean isWon()
    • getOwnCard

      public Card getOwnCard()
    • getOpponentCard

      public Card getOpponentCard()
    • isClientInterested

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

      public Card getSourceCard()
      Specified by:
      getSourceCard in interface HasCard