Package cero.games

Examples of cero.games.ZonesGroup


      throw new ValidationException("There must be at least 2 players");
  }

  public void roundStart(RoundEvent e) {
    Game game = e.getGame();
    ZonesGroup zones = game.getZones();

    Zone dealsource = zones.get("Deal Source");

    for (Zone zone : zones)
      zone.moveCards(dealsource);
   
    for (cero.games.Player p : game.getPlayers())
View Full Code Here


      // Nombre de cartes des joueurs

      for (Player player : game.getPlayers()) {
        String string = player.getPlayerName() + " : ";
        ZonesGroup zones = player.getZones();
        SoundManager.playSound(new TTSSound("", false));
        for (Zone zone : zones)
          string += Integer.toString(zone.getCardCount());
        string += " cartes";
        SoundManager.playSound(new TTSSound(string, false));
View Full Code Here

    List<cero.games.Player> listPlayers = game.getPlayers().getSortedList();
    title = new JLabel("", JLabel.CENTER);

    for (cero.games.Player players : listPlayers) {
      if (players.equals(player)) {
        ZonesGroup zones = players.getZones();
        int totalNumberOfCards = 0;
        for (Zone zone : zones)
          totalNumberOfCards += zone.getCardCount();

        if (totalNumberOfCards == 0) {
View Full Code Here

TOP

Related Classes of cero.games.ZonesGroup

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.