PulpCore

pulpcore.animation.event
Class SoundEvent

java.lang.Object
  extended by pulpcore.animation.Animation
      extended by pulpcore.animation.event.TimelineEvent
          extended by pulpcore.animation.event.SoundEvent
All Implemented Interfaces:
Runnable

public class SoundEvent
extends TimelineEvent

A SoundEvent is a TimelineEvent that plays a sound after a specific delay.


Field Summary
 
Fields inherited from class pulpcore.animation.Animation
LOOP_FOREVER
 
Constructor Summary
SoundEvent(Sound sound, int delay)
          Creates a sound event.
 
Method Summary
 void run()
           
 
Methods inherited from class pulpcore.animation.event.TimelineEvent
hasExecuted, updateState
 
Methods inherited from class pulpcore.animation.Animation
fastForward, getDuration, getEasing, getLoopDelay, getNumLoops, getStartDelay, getTime, getTotalDuration, isFinished, loop, loop, loopForever, loopForever, rewind, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoundEvent

public SoundEvent(Sound sound,
                  int delay)
Creates a sound event.

Parameters:
sound - the sound to play
delay - the delay, in milliseconds, before playing the sound.
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Specified by:
run in class TimelineEvent

PulpCore

Copyright © 2007-2009 Interactive Pulp, LLC.