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

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


    Message message;
    if(we instanceof GameOverEvent) {
      GameOverEvent event = (GameOverEvent) we;
      message = handleGameOver(event);
    }else if(we instanceof HandDealtEvent) {
      HandDealtEvent event = (HandDealtEvent) we;
      message = handleHandDealt(event);
    }else if(we instanceof NewGameEvent) {
      NewGameEvent event = (NewGameEvent) we;
      message = handleNewGame(event);
    } else if(we instanceof NewRoundEvent) {
View Full Code Here


      Collection<String> playerNames = getPlayerNames(mps);
      Collection<Integer> ids = getPlayerIds(mps);
      listener.handleGameOver(new GameOverEvent(ids, playerNames));
    } else if(mt.equals(MessageType.HAND_DEALT)) {
      int id = getPlayerId(mps);
      listener.handleHandDealt(new HandDealtEvent(id));
    } else if(mt.equals(MessageType.NEW_GAME)) {
      List<String> playerNames = getPlayerNames(mps);
      List<Integer> ids = getPlayerIds(mps);
      listener.handleNewGame(new NewGameEvent(ids, playerNames));
    } else if(mt.equals(MessageType.NEW_ROUND)) {
View Full Code Here

      for (Player player: new PlayerIterator(_playerCollection, lead)) {
        player.giveCard(deck.getCard());
      }
    }
    Player dealerPlayer = this._playerCollection.get(dealer);
    gameEventNotifier.notify(new HandDealtEvent(dealerPlayer.getId()));

    if (deck.hasCards()) {
      return deck.getCard();
    }
   
View Full Code Here

TOP

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

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.