|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uiuc.cs397rhc.game.Mood
edu.uiuc.cs397rhc.game.MP3Mood
MP3Mood is a Mood that plays an MP3 file.
| Constructor Summary | |
|---|---|
MP3Mood(java.lang.String filename)
Creates a new MP3Mood that will play the given MP3 file. |
|
| Method Summary | |
|---|---|
void |
begin()
Begins the music by fading it in. |
void |
end()
Ends the music by fading it out. |
double |
getVolumePercentage()
Gets the independent volume percentage of the object. |
boolean |
isActive()
Whether the Mood is playing. |
static void |
main(java.lang.String[] args)
|
void |
setVolumePercentage(double percent)
Sets the volume percentage of the object independently of other volume manipulations, such as fading. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MP3Mood(java.lang.String filename)
MP3Mood that will play the given MP3 file.
filename - the MP3 file's name| Method Detail |
|---|
public boolean isActive()
MoodMood is playing.
isActive in class Moodtrue if playing, false otherwisepublic void begin()
Mood
begin in class Moodpublic void end()
Mood
end in class Moodpublic void setVolumePercentage(double percent)
Equalizable
setVolumePercentage in interface EqualizablesetVolumePercentage in class Moodpercent - the new volume percentagepublic double getVolumePercentage()
Equalizable
getVolumePercentage in interface EqualizablegetVolumePercentage in class Moodpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||