Class PlaySoundEntity

All Implemented Interfaces:
UseListener, Killer, Cloneable, Iterable<String>, Serializable

public class PlaySoundEntity extends UseableEntity
Plays a sound on "use".
Author:
hendrik
  • Constructor Details

    • PlaySoundEntity

      public PlaySoundEntity(String sound, int radius, int volume)
      creates a new PlaySoundEntity
      Parameters:
      sound - name of sound (or sounds) to play
      radius - hearing radius
      volume - volume
  • Method Details

    • onUsed

      public boolean onUsed(RPEntity user)
      plays a sound
      Parameters:
      user - the RPEntity who uses the object
      Returns:
      true if successful