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

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


      message = handleNewGame(event);
    } else if(we instanceof NewRoundEvent) {
      NewRoundEvent event = (NewRoundEvent) we;
      message = handleNewRound(event);
    } else if(we instanceof NewTrickEvent) {
      NewTrickEvent event = (NewTrickEvent) we;
      message = handleNewTrick(event);
    } else if(we instanceof NewTrumpEvent) {
      NewTrumpEvent event = (NewTrumpEvent) we;
      message = handleNewTrump(event);
    } else if(we instanceof PlayerBidEvent) {
View Full Code Here


      listener.handleNewGame(new NewGameEvent(ids, playerNames));
    } else if(mt.equals(MessageType.NEW_ROUND)) {
      int round = getInt(mps, MessageParamConstants.ROUND);
      listener.handleNewRound(new NewRoundEvent(round));
    } else if(mt.equals(MessageType.NEW_TRICK)) {
      listener.handleNewTrick(new NewTrickEvent());
    } else if(mt.equals(MessageType.NEW_TRUMP)) {
      Card card = getCard(mps);
      listener.handleNewTrump(new NewTrumpEvent(card));
    } else if(mt.equals(MessageType.PLAYER_BID)) {
      int bid = getInt(mps, MessageParamConstants.BID);
View Full Code Here

      i++;
    }
  }

  private TrickTracker playTrick(Card trump, int lead, Round round) {
    gameEventNotifier.notify(new NewTrickEvent());
    round.newTrick();
    Trick trick = round.getCurrentTrick();
    TrickTracker trickTracker = new TrickTracker(trump);
    for (Player player: new PlayerIterator(_playerCollection, lead)) {
      Card card = null;
View Full Code Here

TOP

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

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.