com.threerings.media.sound
Class Sounds
java.lang.Object
com.threerings.media.sound.Sounds
public class Sounds
- extends Object
A base class for sound repository classes. These would extend this
class and define keys for the various sounds that are mapped in the
properties file associated with that sound repository.
|
Field Summary |
static String |
PROP_NAME
The name of the sound repository configuration file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_NAME
public static final String PROP_NAME
- The name of the sound repository configuration file.
- See Also:
- Constant Field Values
Sounds
public Sounds()
getPackagePath
public static String getPackagePath(Class<?> clazz)
- Return the package path prefix of the supplied class.
Generates the key for the sound repository configuration file in
the package associated with the class. For example, if a the class
com.threerings.happy.fun.GameSounds were supplied to
this method, it would return
com/threerings/happy/fun/sounds/ which would reference
a sounds.properties file in the
com.threerings.happy.fun package.