|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmovements.MusicPlayer
| Field Summary | |
(package private) int |
introductoryTicks
|
private MusicNote[] |
music
|
private int |
musicEndTick
The number of ticks from the start of the dance (i.e. |
(package private) int |
musicPosition
|
private int |
numberOfNotes
|
private int |
timesThruTheMusic
The number of times the music must be repeated to fill up the length of the dance. |
private int |
totalTicksInMusic
The number of ticks between one repeat of the music and the next repeat. |
| Constructor Summary | |
(package private) |
MusicPlayer(int numberOfNotes,
MusicNote[] music,
int introductoryTicks,
int totalTicksInMusic,
int musicEndTick,
int timesThruTheMusic)
|
| Method Summary | |
(package private) int |
getIntroductoryTicks()
gets the number of ticks needed to play the introductory music that plays before the dance starts on tick zero. |
(package private) void |
playNote(int tick)
If a note starts on the given tick then this method will play the note. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int numberOfNotes
private MusicNote[] music
private int totalTicksInMusic
private int musicEndTick
private int timesThruTheMusic
transient int musicPosition
int introductoryTicks
| Constructor Detail |
MusicPlayer(int numberOfNotes,
MusicNote[] music,
int introductoryTicks,
int totalTicksInMusic,
int musicEndTick,
int timesThruTheMusic)
| Method Detail |
int getIntroductoryTicks()
void playNote(int tick)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||