Package com.svanloon.game.wizard.client.event

Examples of com.svanloon.game.wizard.client.event.PlayerWonTrickEvent


      message = handlePlayerBid(event);
    } else if(we instanceof PlayerPlayedEvent) {
      PlayerPlayedEvent event = (PlayerPlayedEvent) we;
      message = handlePlayerPlayed(event);
    } else if(we instanceof PlayerWonTrickEvent) {
      PlayerWonTrickEvent event = (PlayerWonTrickEvent) we;
      message = handlePlayerWonTrick(event);
    } else if(we instanceof ScoreEvent) {
      ScoreEvent event = (ScoreEvent) we;
      message = handleScore(event);
    } else if(we instanceof PlayerNeedsToPlay) {
View Full Code Here


      int id = getPlayerId(mps);
      listener.handlePlayerPlayed(new PlayerPlayedEvent(id, card));
    } else if(mt.equals(MessageType.PLAYER_WON_TRICK)) {
      int id = getPlayerId(mps);
      Card card = getCard(mps);
      listener.handlePlayerWonTrick(new PlayerWonTrickEvent(id, card));
    } else if(mt.equals(MessageType.SCORE_EVENT)) {
      int score = getInt(mps, MessageParamConstants.SCORE);
      int id = getPlayerId(mps);
      listener.handleScore(new ScoreEvent(id, score));
    } else if(mt.equals(MessageType.PLAYER_NEEDS_TO_PLAY)) {
View Full Code Here

      }
    }
    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

TOP

Related Classes of com.svanloon.game.wizard.client.event.PlayerWonTrickEvent

Copyright © 2018 www.massapicom. 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.