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

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


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


      List<String> playerNames = getPlayerNames(mps);
      List<Integer> ids = getPlayerIds(mps);
      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));
View Full Code Here

    }
    gameEventNotifier.notify(new NewGameEvent(playerIds,playerNames));
    for (int roundId = startRound; roundId < endRound + 1; roundId = roundId + inc) {
      dealer = (dealer + 1)% _playerCollection.size();
      lead = (dealer + 1)% _playerCollection.size();
      gameEventNotifier.notify(new NewRoundEvent(roundId));
      _game.newRound(roundId);
      Round round = _game.getCurrentRound();
      Card trump = dealCards(roundId, dealer, lead);
      gameEventNotifier.notify(new NewTrumpEvent(trump));
      round.setTrump(trump);
View Full Code Here

TOP

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

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.