MusicListener.java :  » Game » foogamelib » org » newdawn » slick » Java Open Source

Java Open Source » Game » foogamelib 
foogamelib » org » newdawn » slick » MusicListener.java
package org.newdawn.slick;

/**
 * The description of any class needing to recieve notification of changes
 * to music state.
 *
 * @author kevin
 */
public interface MusicListener {

  /**
   * Notification that a piece of music finished playing
   * 
   * @param music The music that finished playing
   */
  public void musicEnded(Music music);
  
  /**
   * Notification that a piece of music has been swapped 
   * for another.
   * 
   * @param music The music that has been swapped out
   * @param newMusic The new music we're playing
   */
  public void musicSwapped(Music music, Music newMusic);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.