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

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


      message = handleNewTrump(event);
    } else if(we instanceof PlayerBidEvent) {
      PlayerBidEvent event = (PlayerBidEvent) we;
      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) {
View Full Code Here


      int id = getPlayerId(mps);
      listener.handlePlayerBid(new PlayerBidEvent(id, bid));
    } else if(mt.equals(MessageType.PLAYER_PLAYED)) {
      Card card = getCard(mps);
      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)) {
View Full Code Here

        // need to make sure the card is valid. otherwise repeat
        gameEventNotifier.notify(new PlayerNeedsToPlay(player.getId()));
        card = player.playCard();
        if (ValidityChecker.checkValidity(trickTracker, trump, card, player)) {
          isValid = true;
          gameEventNotifier.notify(new PlayerPlayedEvent(player.getId(), card));
          player.playCardIsValid(card);
        } else {
          player.playCardIsNotValid(card);
        }
      }
View Full Code Here

TOP

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

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.