Examples of winningPlay()


Examples of com.svanloon.game.wizard.client.player.TrickTracker.winningPlay()

      trick.add(new Play(player.getId(), card));
      if (card != null && card.isWizard()) {
        trick.setWizardPlayed(true);
      }
    }
    int winnerId = trickTracker.winningPlay().getPlayerId();
    Card winningCard = trickTracker.winningPlay().getCard();
    trick.setWinner(winnerId);
    gameEventNotifier.notify(new PlayerWonTrickEvent(winnerId, winningCard));

    return trickTracker;
View Full Code Here

Examples of com.svanloon.game.wizard.client.player.TrickTracker.winningPlay()

      if (card != null && card.isWizard()) {
        trick.setWizardPlayed(true);
      }
    }
    int winnerId = trickTracker.winningPlay().getPlayerId();
    Card winningCard = trickTracker.winningPlay().getCard();
    trick.setWinner(winnerId);
    gameEventNotifier.notify(new PlayerWonTrickEvent(winnerId, winningCard));

    return trickTracker;
  }
View Full Code Here

Examples of com.svanloon.game.wizard.client.player.TrickTracker.winningPlay()

      }
      RoundSummary roundSummary = new RoundSummary();
      for (int i = 0; i < roundId; i++) {
        TrickTracker trickTracker = playTrick(trump, lead, round);
        roundSummary.addTrickTracker(trickTracker);
        int playerIdWhoWon = trickTracker.winningPlay().getPlayerId();
        lead = findPlayerIndex(playerIdWhoWon);
      }
      if(go.getBidType().equals(BidType.SECRET)) {
        for(IndividualBid individualBid :bid.getBids()) {
          gameEventNotifier.notify(new PlayerBidEvent(individualBid.getPlayer().getId(), individualBid.getBid()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.