Examples of WaveSound


Examples of cero.ui.sound.WaveSound

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

Examples of cero.ui.sound.WaveSound

        for (Zone zone : zones)
          totalNumberOfCards += zone.getCardCount();

        if (totalNumberOfCards == 0) {
          title.setText("Tu as gagné");
          SoundManager.playSound(new WaveSound("wav/gui/win.wav",
              false));
        } else {
          title.setText("Tu as perdu");
          SoundManager.playSound(new WaveSound("wav/gui/loose.wav",
              false));
        }
      }
    }
    title.setFont(font);
    title.setAlignmentX(JLabel.CENTER_ALIGNMENT);
    labelPanel.add(title, BorderLayout.NORTH);

    SoundManager.playSound(new TTSSound("",false));
   
    String string = "\n";
    for (cero.games.Player players : game.getPlayers()){
      String substring = players.getPlayerName() + " : " + ((UnoPlayer) players).getPoints() + " points\n";
      string += substring;
      SoundManager.playSound(new TTSSound(substring + ".",false));
    }
   
    string+="\nVeux tu recommencer ?\n";

    text = new JTextArea();
    text.setText(string);
    text.setAlignmentX(JTextArea.CENTER_ALIGNMENT);
    text.setFont(font);
    text.setBackground(null);
    labelPanel.add(text, BorderLayout.CENTER);

    SoundManager.playSound(new WaveSound("wav/gui/end.wav", false));
    SoundManager.playSound(new WaveSound("wav/gui/buttons.wav", false));
  }
View Full Code Here

Examples of cero.ui.sound.WaveSound

  /**
   * Action done when we want to quit.
   */
  public void quit() {
    SoundManager.playSound(new WaveSound("wav/gui/au_revoir.wav", true));
    try {
      Thread.sleep(1000);
    } catch (InterruptedException event) {
      event.printStackTrace();
    }
View Full Code Here

Examples of cero.ui.sound.WaveSound

  public InGameMenu(String title, Frame parent) {
    super(title);
    this.parent = parent;
    makeButtonPanel();
    unselectAll();
    SoundManager.playSound(new WaveSound("wav/menu/menu.wav", false));
  }
View Full Code Here

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

          + "Le sens de rotation est inversé.\n\n"
          + "Carte passe ton tour :\n"
          + "Le joueur suivant ne joue pas ce tour.\n");
      break;
    }
    SoundManager.playSound(new WaveSound("wav/gui/rules" + currentPage
        + ".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

    setAlwaysOnTop(true);
    addKeyListener(this);
    makeButtonPanel();
    this.setLocation((widthScreen - 600) / 2, (heightScreen - 400) / 2);
    unselectAll();
    SoundManager.playSound(new WaveSound("wav/gui/couleur.wav", true));

    originThread = Thread.currentThread();
    this.setVisible(true);
    // blocks the thread here, so we can wait for the user's answer
    while (true) {
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.