Class IntroTrack

java.lang.Object
de.gurkenlabs.litiengine.sound.IntroTrack
All Implemented Interfaces:
Track, java.lang.Iterable<Sound>

public class IntroTrack
extends java.lang.Object
implements Track
A Track that plays an intro sound and then loops the specified music sound.
  • Constructor Summary

    Constructors 
    ConstructorDescription
    IntroTrack​(Sound intro, Sound loop)
    Initializes a new IntroTrack for the specified sound.
    IntroTrack​(Sound intro, java.lang.String loop)
    Initializes a new IntroTrack for the specified sound.
    IntroTrack​(java.lang.String intro, Sound loop)
    Initializes a new IntroTrack for the specified sound.
    IntroTrack​(java.lang.String intro, java.lang.String loop)
    Initializes a new IntroTrack for the specified sound.
  • Method Summary

    Modifier and TypeMethodDescription
    booleanequals​(java.lang.Object anObject) 
    javax.sound.sampled.AudioFormatgetFormat() 
    SoundgetIntro() 
    SoundgetLoop() 
    inthashCode() 
    java.util.Iterator<Sound>iterator() 
    java.lang.StringtoString() 

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • IntroTrack

      public IntroTrack​(java.lang.String intro, java.lang.String loop)
      Initializes a new IntroTrack for the specified sound.
      Parameters:
      intro - The name of the sound to be played as intro.
      loop - The name of the sound to be looped.
    • IntroTrack

      public IntroTrack​(Sound intro, java.lang.String loop)
      Initializes a new IntroTrack for the specified sound.
      Parameters:
      intro - The sound to be played as intro.
      loop - The name of the sound to be looped.
    • IntroTrack

      public IntroTrack​(java.lang.String intro, Sound loop)
      Initializes a new IntroTrack for the specified sound.
      Parameters:
      intro - The name of the sound to be played as intro.
      loop - The sound to be looped.
    • IntroTrack

      public IntroTrack​(Sound intro, Sound loop)
      Initializes a new IntroTrack for the specified sound.
      Parameters:
      intro - The sound to be played as intro.
      loop - The sound to be looped.
  • Method Details

    • iterator

      public java.util.Iterator<Sound> iterator()
      Specified by:
      iterator in interface java.lang.Iterable<Sound>
    • getFormat

      public javax.sound.sampled.AudioFormat getFormat()
      Specified by:
      getFormat in interface Track
    • getIntro

      public Sound getIntro()
    • getLoop

      public Sound getLoop()
    • equals

      public boolean equals​(java.lang.Object anObject)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object