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.GameEventTypebooleanShould this notification be sent to the client?booleanisWon()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
-
JoustEvent
-
-
Method Details
-
getEventType
public com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType getEventType()- Specified by:
getEventTypein classGameEvent
-
isWon
public boolean isWon() -
getOwnCard
-
getOpponentCard
-
isClientInterested
public boolean isClientInterested()Description copied from interface:NotificationShould this notification be sent to the client?- Specified by:
isClientInterestedin interfaceNotification- Returns:
falseby default.
-
getSourceCard
- Specified by:
getSourceCardin interfaceHasCard
-