diff options
author | Aidan Ross <aross02@fairport.org> | 2023-05-24 17:02:47 -0400 |
---|---|---|
committer | Aidan Ross <aross02@fairport.org> | 2023-05-24 17:02:47 -0400 |
commit | cc6ed32bb9da1319834d06d78cee7a8c4050334e (patch) | |
tree | 4da7daa578e7bd8e3a0b44bbb3698c54cdbb97b2 /src/fallTest/NoteInfo.java | |
parent | 7bec9556788656ab643d5621d0598c258a54e2ef (diff) | |
download | NPEhero-cc6ed32bb9da1319834d06d78cee7a8c4050334e.tar.gz NPEhero-cc6ed32bb9da1319834d06d78cee7a8c4050334e.tar.bz2 NPEhero-cc6ed32bb9da1319834d06d78cee7a8c4050334e.zip |
Instead of timestamps, notes are now sent in by beats, which are based off of the song's bpm.
Diffstat (limited to '')
-rw-r--r-- | src/fallTest/NoteInfo.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fallTest/NoteInfo.java b/src/fallTest/NoteInfo.java index 8ab822c..6a9c759 100644 --- a/src/fallTest/NoteInfo.java +++ b/src/fallTest/NoteInfo.java @@ -7,14 +7,14 @@ import javafx.scene.paint.Color; public class NoteInfo { - private int sendTime; + private double sendTime; private Color col; - public NoteInfo(int t) { + public NoteInfo(double t) { sendTime = t; } - public int getTime() { + public double getTime() { return sendTime; } @@ -22,7 +22,7 @@ public class NoteInfo return col; } - public int compareTo(NoteInfo other) { + public double compareTo(NoteInfo other) { return sendTime - other.sendTime; } } |