|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uiuc.cs397rhc.game.Mood
A Mood is background music that is Equalizable and
which will fade in when begun and fade out when ended.
| Constructor Summary | |
|---|---|
Mood()
|
|
| Method Summary | |
|---|---|
abstract void |
begin()
Begins the music by fading it in. |
abstract void |
end()
Ends the music by fading it out. |
abstract double |
getVolumePercentage()
Gets the independent volume percentage of the object. |
abstract boolean |
isActive()
Whether the Mood is playing. |
abstract 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 Mood()
| Method Detail |
|---|
public abstract boolean isActive()
Mood is playing.
true if playing, false otherwisepublic abstract void begin()
public abstract void end()
public abstract void setVolumePercentage(double percent)
Equalizable
setVolumePercentage in interface Equalizablepercent - the new volume percentagepublic abstract double getVolumePercentage()
Equalizable
getVolumePercentage in interface Equalizable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||