Class SinglePlayMusic

java.lang.Object
pi.resources.sound.SinglePlayMusic
All Implemented Interfaces:
Iterable<Sound>, Music

public class SinglePlayMusic extends Object implements Music
A Music that plays a sound once and then stops.
Author:
Steffen Wilke, Matthias Wilke, Josef Friedrich
  • Constructor Details

    • SinglePlayMusic

      public SinglePlayMusic(String filePath)
      Initializes a new SinglePlayMusic for the specified sound.
      Parameters:
      filePath - The name of the sound to be played by this music.
    • SinglePlayMusic

      public SinglePlayMusic(Sound sound)
      Initializes a new SinglePlayMusic for the specified sound.
      Parameters:
      sound - The sound to be played by this music.
  • Method Details