Package cero.games.base

Examples of cero.games.base.ZonePile


    // if it comes from a "Hand" zone to the "Talon" zone
    if (action.getZoneFrom().getName().equals("Hand")
        && action.getZoneTo().getName().equals("Talon")) {
      ArrayList<Card> cards = new ArrayList<Card>();
      cards.addAll(action.getCards());
      ZonePile talonZone = ((UnoGame) action.getGame())
          .getTalon();
      if (((CardUno) cards.get(0)).getColor() == ((CardUno) talonZone
          .getTopCard()).getActiveColor()) {
        return true;
      }
    }
    return false;
View Full Code Here


    Collection<Card> cardSet = new ArrayList<Card>();
    for (Card card : card52Set)
      cardSet.add(card);

    // dealsource creation
    Zone talonZone = new ZonePile("Talon");
    Zone stockZone = new ZoneStock("Stock", cardSet, (ZonePile) talonZone);
    uno.getZones().add(talonZone);
    uno.getZones().add(stockZone);

    // Players and zones creation
View Full Code Here

      // Couleur demandée :
      sayAskedColor();

      // Derniere carte posée
      ZonePile talon = game.getTalon();
      CardUno topcard = (CardUno) talon.getTopCard();
      SoundManager.playSound(new WaveSound("wav/gui/dernierecarte.wav",
          false));
      SoundManager.playSound(new WaveSound("wav/cards/"
          + topcard.getCardName() + ".wav", false));
View Full Code Here

    /**
     * Says the asked color.
     */
    private void sayAskedColor() {
      ZonePile talon = game.getTalon();
      CardUno topcard = (CardUno) talon.getTopCard();
      String couleur = "";
      if (topcard.getActiveColor() == CardUno.BLEU)
        couleur = "bleu";
      else if (topcard.getActiveColor() == CardUno.ROUGE)
        couleur = "rouge";
View Full Code Here

TOP

Related Classes of cero.games.base.ZonePile

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.