Examples of WaveSound


Examples of cero.ui.sound.WaveSound

   */
  public void doAction(int action) {
    switch (action) {
    case QUIT:
      SoundManager
          .playSound(new WaveSound("wav/gui/au_revoir.wav", true));
      try {
        Thread.sleep(1000);
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
View Full Code Here

Examples of cero.ui.sound.WaveSound

    super(parent, title);
    setSize(800, 520);
    super.configureFrame();
    makeLabelPanel();
    addKeyListener(this);
    SoundManager.playSound(new WaveSound("wav/gui/help.wav", true));
  }
View Full Code Here

Examples of cero.ui.sound.WaveSound

  private void setSelected(JSmoothButton button) {
    unselectAll();
    button.setSelected(true);
    button.setBackground(Color.WHITE);
    button.setForeground(Color.BLACK);
    SoundManager.playSound(new WaveSound(button.getSoundFile(), true));
  }
View Full Code Here

Examples of cero.ui.sound.WaveSound

    super(parent, title);
    setSize(460, 220);
    super.configureFrame();
    makeLabelPanel();
    addKeyListener(this);
    SoundManager.playSound(new WaveSound("wav/gui/quit.wav", false));
    SoundManager.playSound(new WaveSound("wav/gui/buttons.wav", false));
  }
View Full Code Here

Examples of cero.ui.sound.WaveSound

    okButton = new JButton("  Oui  ");
    okButton.setFont(font);
    okButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        SoundManager.playSound(new WaveSound("wav/gui/au_revoir.wav",false));
        try {
          Thread.sleep(1000);
        } catch (InterruptedException event) {
          event.printStackTrace();
        }
View Full Code Here

Examples of cero.ui.sound.WaveSound

     */
    private void sayCurrentCard() {
      if (this.getGCard() != null) {
        String url = "wav/cards/"
            + this.getGCard().getCard().getCardName() + ".wav";
        SoundManager.playSound(new WaveSound(url, true));
      }
    }
View Full Code Here

Examples of cero.ui.sound.WaveSound

      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));

      // Nombre de cartes des joueurs

      for (Player player : game.getPlayers()) {
View Full Code Here

Examples of cero.ui.sound.WaveSound

      else if (topcard.getActiveColor() == CardUno.JAUNE)
        couleur = "jaune";
      else if (topcard.getActiveColor() == CardUno.NOIR)
        couleur = "noir";

      SoundManager.playSound(new WaveSound("wav/gui/couleurdemande.wav",
          false));
      SoundManager.playSound(new WaveSound("wav/gui/" + couleur + ".wav",
          false));
    }
View Full Code Here

Examples of cero.ui.sound.WaveSound

      // quand on joue une carte
      if (action instanceof ActionPlayACard) {
        if (!event.getPlayer().equals(player))
          if (event.getCards() != null)
            for (Card card : event.getCards()) {
              SoundManager.playSound(new WaveSound("wav/cards/"
                  + card.getCardName() + ".wav", false));
              if (card.getCardName().equals("Joker")
                  || card.getCardName().equals("+4"))
                sayAskedColor();
            }
           
      }
      // quand on pioche
      if (action instanceof ActionPick) {
        SoundManager.playSound(new WaveSound("wav/gui/pioche.wav",
            false));
        if (action.getPlayer().equals(player)) {
          playerhaspicked = true;
          for (Card card : action.getCards())
            SoundManager.playSound(new WaveSound("wav/cards/"
                + card.getCardName() + ".wav", false));
        }

      } else {
        if (action.getPlayer().equals(player))
          playerhaspicked = false;
        // quand c'est à notre tour de jouer, mais pas après avoir
        // pioché
        if (action.getGame().getPlayers().getSortedList().get(0)
            .equals(player))
          SoundManager.playSound(new WaveSound("wav/gui/ding.wav",
              false));
      }

      // quand on passe
      if (action instanceof ActionSkipTurn)
        SoundManager
            .playSound(new WaveSound("wav/gui/passe.wav", false));
     
     
      deck.repaint();
    }
View Full Code Here

Examples of cero.ui.sound.WaveSound

    this.parent = parent;
    setSize(500, 320);
    super.configureFrame();
    addKeyListener(this);
    SoundManager
        .playSound(new WaveSound("wav/gui/resumescores.wav", false));
    makeLabelPanel();
    scoresSummary();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.