GF4J 0.9.4 Beta

gameframe.engines
Class NullMusic

java.lang.Object
  |
  +--gameframe.engines.NullMusic
All Implemented Interfaces:
Music, Sound

public class NullMusic
extends java.lang.Object
implements Music

A do nothing implementation of a music object.

Since:
GameFrame for Java 0.9.2
Version:
GameFrame for Java 0.9.4
See Also:
gameframe.Sample

Constructor Summary
NullMusic()
           
 
Method Summary
 void finalize()
          Does nothing.
 boolean isPlaying()
          Returns always false.
 void playLooped()
          Does nothing.
 void playOnce()
          Does nothing.
 void stop()
          Does nothing.
 
Methods inherited from class java.lang.Object
, clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

NullMusic

public NullMusic()
Method Detail

playOnce

public void playOnce()
Does nothing.
Specified by:
playOnce in interface Sound
Since:
GameFrame for Java 0.9.2

playLooped

public void playLooped()
Does nothing.
Specified by:
playLooped in interface Sound
Since:
GameFrame for Java 0.9.2

stop

public void stop()
Does nothing.
Specified by:
stop in interface Sound
Since:
GameFrame for Java 0.9.2

isPlaying

public boolean isPlaying()
Returns always false.
Specified by:
isPlaying in interface Sound
Returns:
False.
Since:
GameFrame for Java 0.9.2

finalize

public void finalize()
Does nothing.
Specified by:
finalize in interface Sound
Overrides:
finalize in class java.lang.Object
Since:
GameFrame for Java 0.9.2

GF4J 0.9.4 Beta