Class JoustEvent
java.lang.Object
net.demilich.metastone.game.events.GameEvent
net.demilich.metastone.game.events.JoustEvent
- All Implemented Interfaces:
Serializable
,Cloneable
,HasCard
,Notification
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 Summary
ConstructorsConstructorDescriptionJoustEvent
(GameContext context, int playerId, boolean won, Card ownCard, Card opponentCard) -
Method Summary
Modifier and TypeMethodDescriptioncom.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType
boolean
Should this notification be sent to the client?boolean
isWon()
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
-
JoustEvent
-
-
Method Details
-
getEventType
public com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType getEventType()- Specified by:
getEventType
in classGameEvent
-
isWon
public boolean isWon() -
getOwnCard
-
getOpponentCard
-
isClientInterested
public boolean isClientInterested()Description copied from interface:Notification
Should this notification be sent to the client?- Specified by:
isClientInterested
in interfaceNotification
- Returns:
false
by default.
-
getSourceCard
- Specified by:
getSourceCard
in interfaceHasCard
-