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

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


      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) {
      PlayerNeedsToPlay event = (PlayerNeedsToPlay) we;
      message = handlePlayerNeedsToPlay(event);
    } else {
View Full Code Here


      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)) {
      int id = getPlayerId(mps);
      listener.handlePlayerNeedsToPlay(new PlayerNeedsToPlay(id));
    }
  }
View Full Code Here

        score = 20 + bidInt * 10;
      } else {
        score = -1 * Math.abs((bidInt - tricksWon) * 10);
      }

      gameEventNotifier.notify(new ScoreEvent(player.getId(), score));
      game.addScore(player.getId(), score);
      IndividualScore individualScore = new IndividualScore(player, score);
      this.overallScores.addIndividualScore(individualScore);
      i++;
    }
View Full Code Here

TOP

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

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.